virtio: Remove unneeded g_free() check in virtio_cleanup()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
da8d605733
commit
6f79e06b35
|
@ -845,8 +845,7 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f)
|
||||||
void virtio_cleanup(VirtIODevice *vdev)
|
void virtio_cleanup(VirtIODevice *vdev)
|
||||||
{
|
{
|
||||||
qemu_del_vm_change_state_handler(vdev->vmstate);
|
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->vq);
|
||||||
g_free(vdev);
|
g_free(vdev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue