From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 8A0B52E8D for ; Thu, 10 Mar 2016 14:27:32 +0100 (CET) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 0ABD6B5955; Thu, 10 Mar 2016 13:27:32 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-209.ams2.redhat.com [10.36.4.209]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2ADRUF0012423; Thu, 10 Mar 2016 08:27:31 -0500 To: Aaron Conole , dev@dpdk.org References: <1456426121-21423-1-git-send-email-aconole@redhat.com> <1456426121-21423-5-git-send-email-aconole@redhat.com> From: Panu Matilainen Message-ID: <56E17642.3030604@redhat.com> Date: Thu, 10 Mar 2016 15:27:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1456426121-21423-5-git-send-email-aconole@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Subject: Re: [dpdk-dev] [PATCH 4/8] drivers/net/e1000: Fix missing lsc interrupt check brackets 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: Thu, 10 Mar 2016 13:27:32 -0000 On 02/25/2016 08:48 PM, Aaron Conole wrote: > The device lsc interupt check has a misleading whitespace around it which > can be improved by adding appropriate braces to the check. Since the ret > variable was checked after previous assignment, this introduces no functional > change. > > Signed-off-by: Aaron Conole > --- > drivers/net/e1000/em_ethdev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c > index 4a843fe..1d86091 100644 > --- a/drivers/net/e1000/em_ethdev.c > +++ b/drivers/net/e1000/em_ethdev.c > @@ -637,13 +637,14 @@ eth_em_start(struct rte_eth_dev *dev) > > if (rte_intr_allow_others(intr_handle)) { > /* check if lsc interrupt is enabled */ > - if (dev->data->dev_conf.intr_conf.lsc != 0) > + if (dev->data->dev_conf.intr_conf.lsc != 0) { > ret = eth_em_interrupt_setup(dev); > if (ret) { > PMD_INIT_LOG(ERR, "Unable to setup interrupts"); > em_dev_clear_queues(dev); > return ret; > } > + } > } else { > rte_intr_callback_unregister(intr_handle, > eth_em_interrupt_handler, > Acked-by: Panu Matilainen Seems really obvious but cc'd the e1000 maintainer too. - Panu -