summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorSZ Lin <sz.lin@moxa.com>2017-07-29 12:42:34 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-29 23:02:07 +0200
commit68f70d837d7e07ba118eb0ea4a44ea276ce53f60 (patch)
treeea1914532a60143725c211ef10f2523a4de3ba23 /drivers/net/ethernet/moxa
parentMerge branch 'smc-get-rid-of-unsafe_global_rkey' (diff)
downloadlinux-68f70d837d7e07ba118eb0ea4a44ea276ce53f60.tar.xz
linux-68f70d837d7e07ba118eb0ea4a44ea276ce53f60.zip
net: moxa: Remove braces from single-line body
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>
Diffstat (limited to 'drivers/net/ethernet/moxa')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.c3
1 files changed, 1 insertions, 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 @@ 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);