Skip to contentSkip to conversation

ps3_gelic_net: Delete an error message for a failed memory allocation in gelic_descr_prepare_rx()

PATCH Applied SF Markus Elfring 2 participants 2 messages Jan 3, 2018 – Jan 4, 2018

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ps3_gelic_net: Delete an error message for a failed memory allocation in gelic_descr_prepare_rx()

From: Markus Elfring <[email protected]>
Date: Wed, 3 Jan 2018 14:50:59 +0100

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/net/ethernet/toshiba/ps3_gelic_net.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/toshiba/ps3_gelic_net.c +0 -2
index 88d74aef218a..644b875e324c 100644
@@ -395,8 +395,6 @@ static int gelic_descr_prepare_rx(struct gelic_card *card,
 	descr->skb = dev_alloc_skb(bufsize + GELIC_NET_RXBUF_ALIGN - 1);
 	if (!descr->skb) {
 		descr->buf_addr = 0; /* tell DMAC don't touch memory */
-		dev_info(ctodev(card),
-			 "%s:allocate skb failed !!\n", __func__);
 		return -ENOMEM;
 	}
 	descr->buf_size = cpu_to_be32(bufsize);
Signature · 1 line
2.15.1
maintainer Applied
#1 lore raw
Quoted 1 line · SF Markus Elfring

Omit an extra message for a memory allocation failure in this function.

I applied this to my ps3-queue branch.

As I mentioned to you several times before, please keep the commit subject line to less than 50 characters. Also, in this case the prefix would be 'net/ps3_gelic_net:"

-Geoff