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 671ec3f05655 ("virtio-blk: Convert VirtIOBlockReq.elem to
pointer", 2014-06-11); later on in f897bf751fbd ("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
..
2017-04-26 10:22:31 +01:00
2017-04-05 17:23:52 +02:00
2017-04-25 14:14:17 +01:00
2017-04-21 15:59:27 +01:00
2017-04-26 10:22:31 +01:00
2017-04-26 12:00:42 +10:00
2017-04-05 17:23:52 +02:00
2017-05-07 09:57:51 +03:00
2017-04-24 12:32:12 +01:00
2017-04-21 15:59:27 +01:00
2017-04-25 11:04:34 -07:00