From: Tillmann Heidsieck Date: Sat, 10 Oct 2015 19:47:19 +0000 (+0200) Subject: atm: iphase: fix misleading indention X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cbb41b91e68a302087762823136c9067138cff7c;p=linux.git atm: iphase: fix misleading indention 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 Signed-off-by: David S. Miller --- diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index d5010d7a99c34..7d00f2994738b 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c @@ -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