]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_console: drop unused config fields
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Dec 2016 19:39:42 +0000 (21:39 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 04:59:15 +0000 (06:59 +0200)
commita2dacc3bd56e95200866656fbca925f593cb2908
tree79424365f39838ef532bf5042d62c1b8cee013af
parentb8973a5df4c703c7bc4a0672e143565b9d463e74
virtio_console: drop unused config fields

struct ports_device includes a config field including the whole
virtio_console_config, but only max_nr_ports in there is ever updated or
used. The rest is unused and in fact does not even mirror the
device config. Drop everything except max_nr_ports,
saving some memory.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
drivers/char/virtio_console.c