From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> 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. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- drivers/net/wireless/intersil/p54/p54spi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wireless/intersil/p54/p54spi.c b/drivers/net/wireless/intersil/p54/p54spi.c index e41bf042352e..900cfaacf25e 100644 --- a/drivers/net/wireless/intersil/p54/p54spi.c +++ b/drivers/net/wireless/intersil/p54/p54spi.c @@ -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; } -- 2.15.1