Skip to contentSkip to conversation

staging: et131x: remove unneccessary 'out of memory' message

PATCH In review Karthik Nayak 2 participants 2 messages Sep 30, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: et131x: remove unneccessary 'out of memory' message

Removes the 'out of memory' warning issued by checkpatch

---
 drivers/staging/et131x/et131x.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/et131x/et131x.c +1 -3
index 41fcaa0..f92cceb 100644
@@ -2422,10 +2422,8 @@ static struct rfd *nic_rx_pkts(struct et131x_adapter *adapter)
 	rfd->len = len;
 
 	skb = dev_alloc_skb(rfd->len + 2);
-	if (!skb) {
-		dev_err(&adapter->pdev->dev, "Couldn't alloc an SKB for Rx\n");
+	if (!skb)
 		return NULL;
-	}
 
 	adapter->netdev->stats.rx_bytes += rfd->len;
 
Signature · 1 line
2.1.0
#1 lore raw
Quoted 4 lines · Karthik Nayak

Removes the 'out of memory' warning issued by checkpatch

---

Hi,

I'm not sure which tree you're working agianst, but this change has already been made and is on both staging-next and linux-next.

Cheers,

Mark