Skip to contentSkip to conversation

p54spi: Delete an error message for a failed memory allocation in p54spi_rx()

PATCH New SF Markus Elfring 1 participant 1 message Dec 29, 2017

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

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

From: Markus Elfring <[email protected]>
Date: Fri, 29 Dec 2017 22:33:10 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/net/wireless/intersil/p54/p54spi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/intersil/p54/p54spi.c +0 -1
index e41bf042352e..900cfaacf25e 100644
@@ -367,7 +367,6 @@ static int p54spi_rx(struct p54s_priv *priv)
 	skb = dev_alloc_skb(len + 4);
 	if (!skb) {
 		p54spi_sleep(priv);
-		dev_err(&priv->spi->dev, "could not alloc skb");
 		return -ENOMEM;
 	}
 
Signature · 1 line
2.15.1