atm: iphase: fix misleading indention
authorTillmann Heidsieck <theidsieck@leenox.de>
Sat, 10 Oct 2015 19:47:19 +0000 (21:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:56:27 +0000 (19:56 -0700)
Fix a smatch warning:
drivers/atm/iphase.c:1178 rx_pkt() warn: curly braces intended?

The code is correct, the indention is misleading. In case the allocation
of skb fails, we want to skip to the end.

Signed-off-by: Tillmann Heidsieck <theidsieck@leenox.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/iphase.c

index d5010d7a99c34335c9a6a2f0cb171e24f54e67b5..7d00f2994738b45d91b6f3b0231856f35341fcb2 100644 (file)
@@ -1176,7 +1176,7 @@ static int rx_pkt(struct atm_dev *dev)
         if (!(skb = atm_alloc_charge(vcc, len, GFP_ATOMIC))) {
            if (vcc->vci < 32)
               printk("Drop control packets\n");
-             goto out_free_desc;
+          goto out_free_desc;
         }
        skb_put(skb,len);  
         // pwang_test