aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-07-30 02:24:07 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-07-30 02:24:30 -0400
commit3f0d0c9b47e09d47fcb755fed786a1ee88e110b5 (patch)
treec79234c6ecb35fe39e3ac20d12941515b29c543d
parent314081f1025e9ea77b69261f21183e9be18a6f91 (diff)
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>
-rw-r--r--drivers/char/virtio_console.c6
1 files changed, 2 insertions, 4 deletions
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)
2223 } 2223 }
2224 2224
2225 pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL); 2225 pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL);
2226 if (!pdrvdata.debugfs_dir) { 2226 if (!pdrvdata.debugfs_dir)
2227 pr_warning("Error %ld creating debugfs dir for virtio-ports\n", 2227 pr_warning("Error creating debugfs dir for virtio-ports\n");
2228 PTR_ERR(pdrvdata.debugfs_dir));
2229 }
2230 INIT_LIST_HEAD(&pdrvdata.consoles); 2228 INIT_LIST_HEAD(&pdrvdata.consoles);
2231 INIT_LIST_HEAD(&pdrvdata.portdevs); 2229 INIT_LIST_HEAD(&pdrvdata.portdevs);
2232 2230