Skip to content

Commit

Permalink
atm: iphase: fix misleading indention
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tillmann Heidsieck authored and David S. Miller committed Oct 13, 2015
1 parent 21e26ff commit cbb41b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/atm/iphase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbb41b9

Please sign in to comment.