]> git.hungrycats.org Git - linux/commitdiff
atm: iphase: fix misleading indention
authorTillmann Heidsieck <theidsieck@leenox.de>
Sat, 10 Oct 2015 19:47:19 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2017 08:43:03 +0000 (09:43 +0100)
commit cbb41b91e68a302087762823136c9067138cff7c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/atm/iphase.c

index 4217f29a85e0473b9686e428cf11c75599b13b41..816087b68ec4796379545fcdec5f91c48e162615 100644 (file)
@@ -1175,7 +1175,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