aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-09-02 18:11:47 +0530
committerRusty Russell <rusty@rustcorp.com.au>2010-10-21 17:44:02 +1030
commit7a2853178dfba9553d58f356113f47fd582e9cc6 (patch)
treef140719154ca00c80a6bc27f28fda37efe85f2d3
parentf4028119714e452f9b49377ec55e0ed1e5d1dfa4 (diff)
downloadlinux-mce-2.6-7a2853178dfba9553d58f356113f47fd582e9cc6.tar.gz
virtio: console: remove_port() should return void
When a port is removed, we have to assume the port is gone. So a success/failure return value doesn't make sense. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--drivers/char/virtio_console.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 70f1c38fa14cd9..21b621343033a8 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1131,7 +1131,7 @@ fail:
}
/* Remove all port-specific data. */
-static int remove_port(struct port *port)
+static void remove_port(struct port *port)
{
struct port_buffer *buf;
@@ -1181,7 +1181,6 @@ static int remove_port(struct port *port)
debugfs_remove(port->debugfs_file);
kfree(port);
- return 0;
}
/* Any private messages that the Host and Guest want to share */