Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1699292
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | SZ Lin <sz.lin@moxa.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/6] net: moxa: Remove braces from single-line body |
| Date | Sat, 29 Jul 2017 12:50:01 +0200 |
| Message-ID | <u8xtL-ZD-19@gated-at.bofh.it> (permalink) |
| References | <u8xtL-ZD-1@gated-at.bofh.it> |
| X-Original-To | davem@davemloft.net |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kMWCPcLXBiNeK1Hvw0Cv07QWimLRAaW0lobuewjIK7M=; b=UmsZ1/y6OzhACK+u+HbqO1xOEmbUB/QFyKuPqnT5oA96k2dFIFLWjqRdY48jmQNQM1 HMactK1giWpDLLlmhc7WtG1pKtKQjdGo7Ladslx7UgN61G3unNQAb+PEniLdUtHDmH08 YVounbyTI1PO/2sNER+pT6R8dRS7wAu5zwDUY/o38dwW+IbUguIeSjeviagyi3u12tX1 YStyGQerWo6HZq/9CTL+8Db3Bbd9SipsUjyOtVXlBgg4KSA1TqRzpA2k2lDceJqGsSWA TO4fCM4yCouwULJtJaRtzDLlsyCXKSKpFItSCxcEnDE5vBE43E1o/vUU+8l/d+rGQojZ cSvA== |
| X-Gm-Message-State | AIVw1120H06YjT5uSGKFnUqUHwTyMjvtQSUI0AAPEnlUO+d8qc9I8Id0 43T7vYxcT9mN4A== |
| X-Received | by 10.98.102.149 with SMTP id s21mr10176864pfj.331.1501325034071; Sat, 29 Jul 2017 03:43:54 -0700 (PDT) |
| X-Mailer | git-send-email 2.13.3 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 25 |
| Organization | linux.* mail to news gateway |
| X-Original-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 <sz.lin@moxa.com> |
| X-Original-Date | Sat, 29 Jul 2017 18:42:34 +0800 |
| X-Original-Message-ID | <20170729104239.14999-2-sz.lin@moxa.com> |
| X-Original-References | <20170729104239.14999-1-sz.lin@moxa.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1699292 |
Show key headers only | View raw
Remove unnecessary braces from single-line if statement
This warning is found using checkpatch.pl
Signed-off-by: SZ Lin <sz.lin@moxa.com>
---
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] net: moxa: Fix style issues SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned' SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 3/6] net: moxa: Fix comparison to NULL could be written with ! SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 5/6] net: moxa: Fix for typo in comment to function moxart_mac_setup_desc_ring() SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 4/6] net: moxa: Remove extra space after a cast SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 1/6] net: moxa: Remove braces from single-line body SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
[PATCH 6/6] net: moxa: Add spaces preferred around that '{+,-}' SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
Re: [PATCH 0/6] net: moxa: Fix style issues David Miller <davem@davemloft.net> - 2017-07-29 23:10 +0200
csiph-web