qemu-e2k/hw/block
Fam Zheng 1d29b5b049 virtio-blk: Remove useless condition around g_free()
Laszlo spotted and studied this wasteful "if". He pointed out:

The original virtio_blk_free_request needed an "if" as it accesses one
field, since 671ec3f056 ("virtio-blk: Convert VirtIOBlockReq.elem to
pointer", 2014-06-11); later on in f897bf751f ("virtio-blk: embed
VirtQueueElement in VirtIOBlockReq", 2014-07-09) the field became
embedded, so the "if" became unnecessary (at which point we were using
g_slice_free(), but it is the same.

Now drop it.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2017-05-10 10:19:23 +03:00
..
dataplane virtio: Report real progress in VQ aio poll handler 2017-02-17 21:52:30 +02:00
block.c hw/block: Introduce share-rw qdev property 2017-02-28 20:40:36 +01:00
cdrom.c
ecc.c
fdc.c fdc: Make errp the last parameter of fdctrl_connect_drives 2017-04-24 09:13:44 +02:00
hd-geometry.c
m25p80.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
Makefile.objs xen: do not build backends for targets that do not support xen 2017-03-19 11:12:12 +01:00
nand.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
nvme.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
nvme.h
onenand.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
pflash_cfi01.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
pflash_cfi02.c hw/block: Request permissions 2017-02-28 20:40:36 +01:00
tc58128.c
trace-events trace: move hw/block/dataplane events to correct subdir 2017-01-31 17:11:17 +00:00
virtio-blk.c virtio-blk: Remove useless condition around g_free() 2017-05-10 10:19:23 +03:00
xen_blkif.h xen: import ring.h from xen 2017-04-21 12:41:29 -07:00
xen_disk.c xen: use 5 digit xen versions 2017-04-21 12:40:09 -07:00