]> git.karo-electronics.de Git - karo-tx-linux.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)
commit7328fa64aa30405c2d6abd44bb6866e914dba35d
tree79424365f39838ef532bf5042d62c1b8cee013af
parentc60923cb9cb5e042790839d553ed77e68ef45adf
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