提交 cbb41b91 编写于 作者: T Tillmann Heidsieck 提交者: David S. Miller

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: NTillmann Heidsieck <theidsieck@leenox.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 21e26ff9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册