From: Dan Carpenter Date: Tue, 30 Jul 2013 06:24:07 +0000 (+0930) Subject: virtio: console: cleanup an error message X-Git-Tag: firefly_0821_release~176^2~5373^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3f0d0c9b47e09d47fcb755fed786a1ee88e110b5;p=firefly-linux-kernel-4.4.55.git virtio: console: cleanup an error message The PTR_ERR(NULL) here is not useful. Signed-off-by: Dan Carpenter Reviewed-by: Amit Shah Signed-off-by: Rusty Russell --- diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index d5e2c7050291..5b60956edc28 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -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);