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 <theidsieck@leenox.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Tillmann Heidsieck 2015-10-10 21:47:19 +02:00 committed by David S. Miller
parent 21e26ff993
commit cbb41b91e6
1 changed files with 1 additions and 1 deletions

View File

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