virtio: console: cleanup an error message
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 30 Jul 2013 06:24:07 +0000 (15:54 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 30 Jul 2013 06:24:30 +0000 (15:54 +0930)
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>
drivers/char/virtio_console.c

index d5e2c705029136382221eef506e0d676bd8a8490..5b60956edc2856576521db688208c6ec83e42264 100644 (file)
@@ -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);