Skip to content

Commit bf97bac

Browse files
Liao Pingfangdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6954a9e commit bf97bac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

net/atm/lec.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,10 +1536,8 @@ static struct lec_arp_table *make_entry(struct lec_priv *priv,
15361536
struct lec_arp_table *to_return;
15371537

15381538
to_return = kzalloc(sizeof(struct lec_arp_table), GFP_ATOMIC);
1539-
if (!to_return) {
1540-
pr_info("LEC: Arp entry kmalloc failed\n");
1539+
if (!to_return)
15411540
return NULL;
1542-
}
15431541
ether_addr_copy(to_return->mac_addr, mac_addr);
15441542
INIT_HLIST_NODE(&to_return->next);
15451543
timer_setup(&to_return->timer, lec_arp_expire_arp, 0);

0 commit comments

Comments
 (0)