diff options
| -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 70f1c38fa14c..21b621343033 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -1131,7 +1131,7 @@ fail: | |||
| 1131 | } | 1131 | } |
| 1132 | 1132 | ||
| 1133 | /* Remove all port-specific data. */ | 1133 | /* Remove all port-specific data. */ |
| 1134 | static int remove_port(struct port *port) | 1134 | static void remove_port(struct port *port) |
| 1135 | { | 1135 | { |
| 1136 | struct port_buffer *buf; | 1136 | struct port_buffer *buf; |
| 1137 | 1137 | ||
| @@ -1181,7 +1181,6 @@ static int remove_port(struct port *port) | |||
| 1181 | debugfs_remove(port->debugfs_file); | 1181 | debugfs_remove(port->debugfs_file); |
| 1182 | 1182 | ||
| 1183 | kfree(port); | 1183 | kfree(port); |
| 1184 | return 0; | ||
| 1185 | } | 1184 | } |
| 1186 | 1185 | ||
| 1187 | /* Any private messages that the Host and Guest want to share */ | 1186 | /* Any private messages that the Host and Guest want to share */ |
