Commit 579ebffe authored by Peng Li's avatar Peng Li Committed by David S. Miller
Browse files

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: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c906e36
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;