From a98f77c209ae1b4b761ffb485ad5c3b9f96a1b51 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sun, 20 Jul 2014 20:47:39 -0700 Subject: [PATCH] virtio: fix incorrect parens Signed-off-by: Matthew Hall Acked-by: Thomas Monjalon --- examples/vhost/virtio-net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vhost/virtio-net.c b/examples/vhost/virtio-net.c index 801607ace2..5e659c7549 100644 --- a/examples/vhost/virtio-net.c +++ b/examples/vhost/virtio-net.c @@ -280,8 +280,8 @@ get_config_ll_entry(struct vhost_device_ctx ctx) /* Loop through linked list until the device_fh is found. */ while (ll_dev != NULL) { - if ((ll_dev->dev.device_fh == ctx.fh)) - return ll_dev; + if (ll_dev->dev.device_fh == ctx.fh) + return ll_dev; ll_dev = ll_dev->next; } -- 2.20.1