Commit 7a285317 authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell

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: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f4028119
...@@ -1131,7 +1131,7 @@ static int add_port(struct ports_device *portdev, u32 id) ...@@ -1131,7 +1131,7 @@ static int add_port(struct ports_device *portdev, u32 id)
} }
/* Remove all port-specific data. */ /* Remove all port-specific data. */
static int remove_port(struct port *port) static void remove_port(struct port *port)
{ {
struct port_buffer *buf; struct port_buffer *buf;
...@@ -1181,7 +1181,6 @@ static int remove_port(struct port *port) ...@@ -1181,7 +1181,6 @@ static int remove_port(struct port *port)
debugfs_remove(port->debugfs_file); debugfs_remove(port->debugfs_file);
kfree(port); kfree(port);
return 0;
} }
/* Any private messages that the Host and Guest want to share */ /* Any private messages that the Host and Guest want to share */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment