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-23 14:37:41 +0000
commitd930c3471b25b43384459d2563b8a8697c7f4fe4 (patch)
treef1d988a242cfa22706c9e56e12cf8ff45f10746b
parentf38b5946166e28623a482a68a5f9ccd625420bb3 (diff)
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;
}