projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eace92e
)
net: moxa: Remove braces from single-line body
author
SZ Lin
<sz.lin@moxa.com>
Sat, 29 Jul 2017 10:42:34 +0000
(18:42 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 29 Jul 2017 21:02:07 +0000
(14:02 -0700)
Remove unnecessary braces from single-line if statement
This warning is found using checkpatch.pl
Signed-off-by: SZ Lin <sz.lin@moxa.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/moxa/moxart_ether.c
b/drivers/net/ethernet/moxa/moxart_ether.c
index c0d7d5eec7e72d4d7ea3f6b61e14523fed00a1d0..1052158629493e5a29e9ca6bcf74ec4d502851e2 100644
(file)
--- a/
drivers/net/ethernet/moxa/moxart_ether.c
+++ b/
drivers/net/ethernet/moxa/moxart_ether.c
@@
-269,9
+269,8
@@
rx_next:
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);