p54spi: Delete an error message for a failed memory allocation in p54spi_rx()
Subsystems (4)
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.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/net/wireless/intersil/p54/p54spi.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/intersil/p54/p54spi.c +0 -1
@@ -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