summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-12 11:20:53 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-24 20:01:24 +0400
commit10358b6a1cc466a7d6e6d78364c972935634bdb7 (patch)
tree742cc3c4670f575b3abae72c706aab50ee3d602a /hw
parent513d80edc15d77b6d85df7dfad750ce95d091b78 (diff)
downloadhqemu-10358b6a1cc466a7d6e6d78364c972935634bdb7.zip
hqemu-10358b6a1cc466a7d6e6d78364c972935634bdb7.tar.gz
virtio-serial: remove useless set_config function
Its only contents are a dead memcpy. Since it is optional, drop the function altogether. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw')
-rw-r--r--hw/char/virtio-serial-bus.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
index 2b647b6..a2958ff 100644
--- a/hw/char/virtio-serial-bus.c
+++ b/hw/char/virtio-serial-bus.c
@@ -465,13 +465,6 @@ static void get_config(VirtIODevice *vdev, uint8_t *config_data)
memcpy(config_data, &vser->config, sizeof(struct virtio_console_config));
}
-static void set_config(VirtIODevice *vdev, const uint8_t *config_data)
-{
- struct virtio_console_config config;
-
- memcpy(&config, config_data, sizeof(config));
-}
-
static void guest_reset(VirtIOSerial *vser)
{
VirtIOSerialPort *port;
@@ -1024,7 +1017,6 @@ static void virtio_serial_class_init(ObjectClass *klass, void *data)
vdc->unrealize = virtio_serial_device_unrealize;
vdc->get_features = get_features;
vdc->get_config = get_config;
- vdc->set_config = set_config;
vdc->set_status = set_status;
vdc->reset = vser_reset;
}
OpenPOWER on IntegriCloud