diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-09-02 12:41:47 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-10-21 07:14:02 (GMT) |
commit | 7a2853178dfba9553d58f356113f47fd582e9cc6 (patch) | |
tree | f140719154ca00c80a6bc27f28fda37efe85f2d3 /drivers/char/virtio_console.c | |
parent | f4028119714e452f9b49377ec55e0ed1e5d1dfa4 (diff) | |
download | linux-7a2853178dfba9553d58f356113f47fd582e9cc6.tar.xz |
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>
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r-- | drivers/char/virtio_console.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 70f1c38..21b6213 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 */ |