From patchwork Mon Jul 21 03:47:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Hall X-Patchwork-Id: 70 Return-Path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.46.186]) by dpdk.org (Postfix) with ESMTP id 9BDEC68CB for ; Mon, 21 Jul 2014 05:47:27 +0200 (CEST) Received: from syslog-sdn.mhcomputing.net (172-3-139-73.lightspeed.sntcca.sbcglobal.net [172.3.139.73]) by mail.mhcomputing.net (Postfix) with ESMTPSA id 111A980A158; Sun, 20 Jul 2014 20:48:07 -0700 (PDT) From: Matthew Hall To: dev@dpdk.org Date: Sun, 20 Jul 2014 20:47:39 -0700 Message-Id: <1405914461-19335-3-git-send-email-mhall@mhcomputing.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405914461-19335-1-git-send-email-mhall@mhcomputing.net> References: <1405914461-19335-1-git-send-email-mhall@mhcomputing.net> Subject: [dpdk-dev] [PATCH 2/4] virtio-net.c: incorrect parens around equality check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2014 03:47:27 -0000 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 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; }