Skip to content

Commit

Permalink
net: atm: Remove the error message according to the atomic context
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Liao Pingfang authored and davem330 committed Jun 13, 2020
1 parent 6954a9e commit bf97bac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/atm/lec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf97bac

Please sign in to comment.