Skip to content

Commit 2744fa2

Browse files
321lipengkuba-moo
authored andcommitted
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: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c9a2ca5 commit 2744fa2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/net/wan/hdlc_fr.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,9 @@ static void fr_lmi_send(struct net_device *dev, int fullrep)
474474
}
475475

476476
skb = dev_alloc_skb(len);
477-
if (!skb) {
478-
netdev_warn(dev, "Memory squeeze on fr_lmi_send()\n");
477+
if (!skb)
479478
return;
480-
}
479+
481480
memset(skb->data, 0, len);
482481
skb_reserve(skb, 4);
483482
if (lmi == LMI_CISCO)

0 commit comments

Comments
 (0)