net: atm: Remove the error message according to the atomic context
authorLiao Pingfang <liao.pingfang@zte.com.cn>
Sat, 13 Jun 2020 06:03:26 +0000 (14:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Jun 2020 22:27:06 +0000 (15:27 -0700)
Looking into the context (atomic!) and the error message should be dropped.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/lec.c

index ca37f5a..875fc0b 100644 (file)
@@ -1536,10 +1536,8 @@ static struct lec_arp_table *make_entry(struct lec_priv *priv,
        struct lec_arp_table *to_return;
 
        to_return = kzalloc(sizeof(struct lec_arp_table), GFP_ATOMIC);
-       if (!to_return) {
-               pr_info("LEC: Arp entry kmalloc failed\n");
+       if (!to_return)
                return NULL;
-       }
        ether_addr_copy(to_return->mac_addr, mac_addr);
        INIT_HLIST_NODE(&to_return->next);
        timer_setup(&to_return->timer, lec_arp_expire_arp, 0);