Commit 3f0d0c9b authored by Dan Carpenter's avatar Dan Carpenter Committed by Rusty Russell
Browse files

virtio: console: cleanup an error message



The PTR_ERR(NULL) here is not useful.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 314081f1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2223,10 +2223,8 @@ static int __init init(void)
	}

	pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL);
	if (!pdrvdata.debugfs_dir) {
		pr_warning("Error %ld creating debugfs dir for virtio-ports\n",
			   PTR_ERR(pdrvdata.debugfs_dir));
	}
	if (!pdrvdata.debugfs_dir)
		pr_warning("Error creating debugfs dir for virtio-ports\n");
	INIT_LIST_HEAD(&pdrvdata.consoles);
	INIT_LIST_HEAD(&pdrvdata.portdevs);