[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [TRIVIAL] virtio_cleanup(): Remove unneeded g_free() parame
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [TRIVIAL] virtio_cleanup(): Remove unneeded g_free() parameter check |
Date: |
Thu, 9 Feb 2012 11:29:42 -0200 |
Signed-off-by: Luiz Capitulino <address@hidden>
---
hw/virtio.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/hw/virtio.c b/hw/virtio.c
index 74cc038..064aecf 100644
--- a/hw/virtio.c
+++ b/hw/virtio.c
@@ -845,8 +845,7 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f)
void virtio_cleanup(VirtIODevice *vdev)
{
qemu_del_vm_change_state_handler(vdev->vmstate);
- if (vdev->config)
- g_free(vdev->config);
+ g_free(vdev->config);
g_free(vdev->vq);
g_free(vdev);
}
--
1.7.9.111.gf3fb0.dirty
- [Qemu-devel] [TRIVIAL] virtio_cleanup(): Remove unneeded g_free() parameter check,
Luiz Capitulino <=