Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753870AbdG2KoE (ORCPT ); Sat, 29 Jul 2017 06:44:04 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38175 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753776AbdG2Kny (ORCPT ); Sat, 29 Jul 2017 06:43:54 -0400 From: SZ Lin To: davem@davemloft.net Cc: jarod@redhat.com, jonas.jensen@gmail.com, edumazet@google.com, bhumirks@gmail.com, tklauser@distanz.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, SZ Lin Subject: [PATCH 1/6] net: moxa: Remove braces from single-line body Date: Sat, 29 Jul 2017 18:42:34 +0800 Message-Id: <20170729104239.14999-2-sz.lin@moxa.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170729104239.14999-1-sz.lin@moxa.com> References: <20170729104239.14999-1-sz.lin@moxa.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 773 Lines: 25 Remove unnecessary braces from single-line if statement This warning is found using checkpatch.pl Signed-off-by: SZ Lin --- drivers/net/ethernet/moxa/moxart_ether.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index c0d7d5eec7e7..105215862949 100644 --- a/drivers/net/ethernet/moxa/moxart_ether.c +++ b/drivers/net/ethernet/moxa/moxart_ether.c @@ -269,9 +269,8 @@ static int moxart_rx_poll(struct napi_struct *napi, int budget) priv->rx_head = rx_head; } - if (rx < budget) { + if (rx < budget) napi_complete_done(napi, rx); - } priv->reg_imr |= RPKT_FINISH_M; writel(priv->reg_imr, priv->base + REG_INTERRUPT_MASK); -- 2.13.3