mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 22:34:18 +08:00
net: hdlc_x25: remove unnecessary out of memory message
This patch removes unnecessary out of memory message, to fix the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1c906e3698
commit
579ebffe79
@ -56,10 +56,8 @@ static void x25_connect_disconnect(struct net_device *dev, int reason, int code)
|
||||
unsigned char *ptr;
|
||||
|
||||
skb = __dev_alloc_skb(1, GFP_ATOMIC | __GFP_NOMEMALLOC);
|
||||
if (!skb) {
|
||||
netdev_err(dev, "out of memory\n");
|
||||
if (!skb)
|
||||
return;
|
||||
}
|
||||
|
||||
ptr = skb_put(skb, 1);
|
||||
*ptr = code;
|
||||
|
Loading…
Reference in New Issue
Block a user