virtio: console: cleanup an error message
The PTR_ERR(NULL) here is not useful. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
314081f102
commit
3f0d0c9b47
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue