diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-07-30 15:54:07 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-30 15:54:30 +0930 |
commit | 3f0d0c9b47e09d47fcb755fed786a1ee88e110b5 (patch) | |
tree | c79234c6ecb35fe39e3ac20d12941515b29c543d | |
parent | 314081f1025e9ea77b69261f21183e9be18a6f91 (diff) | |
download | kernel_goldelico_gta04-3f0d0c9b47e09d47fcb755fed786a1ee88e110b5.zip kernel_goldelico_gta04-3f0d0c9b47e09d47fcb755fed786a1ee88e110b5.tar.gz kernel_goldelico_gta04-3f0d0c9b47e09d47fcb755fed786a1ee88e110b5.tar.bz2 |
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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index d5e2c70..5b60956 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); |