aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-01-13 18:47:39 +0800
committerPeter Maydell <peter.maydell@linaro.org>2014-01-14 13:36:45 +0000
commit821699b27d10dafcda390e4e20d9ec56e58acb5e (patch)
tree8af95514a02261a0394a802c66d5314c7325632c
parentfafb5048a308cdf3cc9f571a231df20e72fdf07c (diff)
downloadqemu-arm-821699b27d10dafcda390e4e20d9ec56e58acb5e.tar.gz
dataplane: fix shadowed return value
Propagate the error return value from get_indirect(). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--hw/virtio/dataplane/vring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/dataplane/vring.c b/hw/virtio/dataplane/vring.c
index 250d45ec3d..665a1ffcb3 100644
--- a/hw/virtio/dataplane/vring.c
+++ b/hw/virtio/dataplane/vring.c
@@ -376,7 +376,7 @@ int vring_pop(VirtIODevice *vdev, Vring *vring,
barrier();
if (desc.flags & VRING_DESC_F_INDIRECT) {
- int ret = get_indirect(vring, elem, &desc);
+ ret = get_indirect(vring, elem, &desc);
if (ret < 0) {
goto out;
}