virtio: fix incorrect parens
authorMatthew Hall <mhall@mhcomputing.net>
Mon, 21 Jul 2014 03:47:39 +0000 (20:47 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Jul 2014 13:00:00 +0000 (15:00 +0200)
Signed-off-by: Matthew Hall <mhall@mhcomputing.net>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
examples/vhost/virtio-net.c

index 801607a..5e659c7 100644 (file)
@@ -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;
        }