提交 3f0d0c9b 编写于 作者: D Dan Carpenter 提交者: Rusty Russell

virtio: console: cleanup an error message

The PTR_ERR(NULL) here is not useful.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 314081f1
...@@ -2223,10 +2223,8 @@ static int __init init(void) ...@@ -2223,10 +2223,8 @@ static int __init init(void)
} }
pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL); pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL);
if (!pdrvdata.debugfs_dir) { if (!pdrvdata.debugfs_dir)
pr_warning("Error %ld creating debugfs dir for virtio-ports\n", pr_warning("Error creating debugfs dir for virtio-ports\n");
PTR_ERR(pdrvdata.debugfs_dir));
}
INIT_LIST_HEAD(&pdrvdata.consoles); INIT_LIST_HEAD(&pdrvdata.consoles);
INIT_LIST_HEAD(&pdrvdata.portdevs); INIT_LIST_HEAD(&pdrvdata.portdevs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册