[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 01/14] virtio-serial: remove useless set_config fun
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 01/14] virtio-serial: remove useless set_config function |
Date: |
Tue, 24 Jun 2014 20:09:07 +0400 |
From: Paolo Bonzini <address@hidden>
Its only contents are a dead memcpy. Since it is optional,
drop the function altogether.
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/char/virtio-serial-bus.c | 8 --------
1 file changed, 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;
}
--
1.7.10.4
- [Qemu-trivial] [PULL 00/14] Trivial patches for 2014-06-24, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 06/14] block.c: Remove useless 'buf' variable, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 02/14] Fix new typos (found by codespell), Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 01/14] virtio-serial: remove useless set_config function,
Michael Tokarev <=
- [Qemu-trivial] [PULL 07/14] rng-random: NULL check not needed before g_free(), Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 03/14] configure: Enable TPM by default, add --disable-tpm, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 14/14] Add support for the arm breakpoint syscall, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 12/14] target-s390x: Remove unused ld_code6() function, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 08/14] tcg: mark tcg_out* and tcg_patch* with attribute 'unused', Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 13/14] Increase maximum number of session of the internal TFTP server., Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 10/14] target-unicore: Remove unused functions, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 05/14] vscclient: Add required headers to fix build on FreeBSD, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 09/14] build-sys: introduce install-prog macro to install&strip binaries and use it, Michael Tokarev, 2014/06/24
- [Qemu-trivial] [PULL 04/14] target-ppc: Fix compiler warning, Michael Tokarev, 2014/06/24