summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLiao Pingfang <liao.pingfang@zte.com.cn>2020-06-13 09:03:26 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-14 01:27:06 +0300
commitbf97bac9dc6481e9f68992e52bed5cc4b210e636 (patch)
tree74c2e945574c580cfe104cae5908de62759d1555 /net
parent6954a9e4192b86d778fb52b525fd7b62d51b1147 (diff)
downloadlinux-bf97bac9dc6481e9f68992e52bed5cc4b210e636.tar.xz
net: atm: Remove the error message according to the atomic context
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>
Diffstat (limited to 'net')
-rw-r--r--net/atm/lec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index ca37f5a71f5e..875fc0bc1780 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -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);