From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: [PATCH 2/4] virtio-net.c: incorrect parens around equality check Date: Sun, 20 Jul 2014 20:47:39 -0700 Message-ID: <1405914461-19335-3-git-send-email-mhall@mhcomputing.net> References: <1405914461-19335-1-git-send-email-mhall@mhcomputing.net> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1405914461-19335-1-git-send-email-mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Signed-off-by: Matthew Hall --- 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 801607a..5e659c7 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; } -- 1.9.1