From: SZ Lin Date: Sat, 29 Jul 2017 10:42:34 +0000 (+0800) Subject: net: moxa: Remove braces from single-line body X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68f70d837d7e07ba118eb0ea4a44ea276ce53f60;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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);