]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fs_enet: Avoid comma separated statements
authorJoe Perches <joe@perches.com>
Tue, 25 Aug 2020 04:56:14 +0000 (21:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 14:54:19 +0000 (07:54 -0700)
Use semicolons and braces.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c

index bf846b42bc7479f3065991f6509356385acd0b5c..78e008b813746f518b1507dd992b30792d4ea831 100644 (file)
@@ -562,10 +562,13 @@ fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
                        BD_ENET_TX_TC);
                CBDS_SC(bdp, BD_ENET_TX_READY);
 
-               if ((CBDR_SC(bdp) & BD_ENET_TX_WRAP) == 0)
-                       bdp++, curidx++;
-               else
-                       bdp = fep->tx_bd_base, curidx = 0;
+               if ((CBDR_SC(bdp) & BD_ENET_TX_WRAP) == 0) {
+                       bdp++;
+                       curidx++;
+               } else {
+                       bdp = fep->tx_bd_base;
+                       curidx = 0;
+               }
 
                len = skb_frag_size(frag);
                CBDW_BUFADDR(bdp, skb_frag_dma_map(fep->dev, frag, 0, len,