[PATCH 05/12] staging: et131x: Remove useless assignment to NULL

Mark Einon mark.einon at gmail.com
Sun Sep 14 15:59:01 UTC 2014


The stack variable skb is no longer used after it's set to
NULL. Don't set it to NULL.

Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Signed-off-by: Mark Einon <mark.einon at gmail.com>
---
 drivers/staging/et131x/et131x.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index 9b1a7a8..cebd997 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -4121,7 +4121,6 @@ static netdev_tx_t et131x_tx(struct sk_buff *skb, struct net_device *netdev)
 
 drop_err:
 	dev_kfree_skb_any(skb);
-	skb = NULL;
 	adapter->netdev->stats.tx_dropped++;
 	return NETDEV_TX_OK;
 }
-- 
2.1.0



More information about the devel mailing list