Commit 2744fa2d authored by Peng Li's avatar Peng Li Committed by Jakub Kicinski
Browse files

net: hdlc_fr: 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 avatarJakub Kicinski <kuba@kernel.org>
parent c9a2ca5d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -474,10 +474,9 @@ static void fr_lmi_send(struct net_device *dev, int fullrep)
	}

	skb = dev_alloc_skb(len);
	if (!skb) {
		netdev_warn(dev, "Memory squeeze on fr_lmi_send()\n");
	if (!skb)
		return;
	}

	memset(skb->data, 0, len);
	skb_reserve(skb, 4);
	if (lmi == LMI_CISCO)