Commit 68f70d83 authored by SZ Lin's avatar SZ Lin Committed by David S. Miller

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: default avatarSZ Lin <sz.lin@moxa.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eace92e3
...@@ -269,9 +269,8 @@ static int moxart_rx_poll(struct napi_struct *napi, int budget) ...@@ -269,9 +269,8 @@ static int moxart_rx_poll(struct napi_struct *napi, int budget)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment