]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: Fix compiler warning for non Linux hosts
authorStefan Weil <sw@weilnetz.de>
Tue, 22 May 2012 21:23:32 +0000 (23:23 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jun 2012 14:04:04 +0000 (09:04 -0500)
commit7d440f20bda8658fe16bdfe9c41c689764c50248
treef848eaf384753e9ff92d24b957a1f6dd45f3f27f
parentfeba8ae20b372115bc15432d7c484171c25bee62
virtio: Fix compiler warning for non Linux hosts

The local variables ret, i are only used if __linux__ is defined.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 47ce9ef7f89032c4079bf5132a12d1bfd4d5bca5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio-blk.c