Skip to content

Commit

Permalink
net: moxa: Remove braces from single-line body
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SZ Lin authored and David S. Miller committed Jul 29, 2017
1 parent eace92e commit 68f70d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/moxa/moxart_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68f70d8

Please sign in to comment.