Skip to content

Commit

Permalink
virtio-serial: remove useless set_config function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and Michael Tokarev committed Jun 24, 2014
1 parent 513d80e commit 10358b6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions hw/char/virtio-serial-bus.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 10358b6

Please sign in to comment.