net: hdlc_fr: remove unnecessary out of memory message
authorPeng Li <lipeng321@huawei.com>
Fri, 28 May 2021 00:12:49 +0000 (08:12 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 May 2021 21:08:12 +0000 (14:08 -0700)
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: Jakub Kicinski <kuba@kernel.org>
drivers/net/wan/hdlc_fr.c

index de7fbdc..72250fe 100644 (file)
@@ -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)