diff mbox series

[v2] net: atm: Remove the error message according to the atomic context

Message ID 1591835930-25941-1-git-send-email-wang.yi59@zte.com.cn
State Changes Requested
Delegated to: David Miller
Headers show
Series [v2] net: atm: Remove the error message according to the atomic context | expand

Commit Message

Yi Wang June 11, 2020, 12:38 a.m. UTC
From: Liao Pingfang <liao.pingfang@zte.com.cn>

Looking into the context (atomic!) and the error message should be dropped.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
---
Changes in v2: drop the error message instead of changing it.

 net/atm/lec.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Miller June 11, 2020, 1:08 a.m. UTC | #1
From: Yi Wang <wang.yi59@zte.com.cn>
Date: Thu, 11 Jun 2020 08:38:50 +0800

> @@ -1537,7 +1537,6 @@ static struct lec_arp_table *make_entry(struct lec_priv *priv,
>  
>  	to_return = kzalloc(sizeof(struct lec_arp_table), GFP_ATOMIC);
>  	if (!to_return) {
> -		pr_info("LEC: Arp entry kmalloc failed\n");
>  		return NULL;
>  	}

This now becomes a single-statement basic block and thus the curly
braces should be removed.
diff mbox series

Patch

diff --git a/net/atm/lec.c b/net/atm/lec.c
index ca37f5a..997ce13 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -1537,7 +1537,6 @@  static struct lec_arp_table *make_entry(struct lec_priv *priv,
 
 	to_return = kzalloc(sizeof(struct lec_arp_table), GFP_ATOMIC);
 	if (!to_return) {
-		pr_info("LEC: Arp entry kmalloc failed\n");
 		return NULL;
 	}
 	ether_addr_copy(to_return->mac_addr, mac_addr);