Browse Source

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>
SZ Lin 8 years ago
parent
commit
68f70d837d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/net/ethernet/moxa/moxart_ether.c

+ 1 - 2
drivers/net/ethernet/moxa/moxart_ether.c

@@ -269,9 +269,8 @@ rx_next:
 		priv->rx_head = rx_head;
 		priv->rx_head = rx_head;
 	}
 	}
 
 
-	if (rx < budget) {
+	if (rx < budget)
 		napi_complete_done(napi, rx);
 		napi_complete_done(napi, rx);
-	}
 
 
 	priv->reg_imr |= RPKT_FINISH_M;
 	priv->reg_imr |= RPKT_FINISH_M;
 	writel(priv->reg_imr, priv->base + REG_INTERRUPT_MASK);
 	writel(priv->reg_imr, priv->base + REG_INTERRUPT_MASK);