From 0c55fe2018f7f84e3620e85e4b0d5d06274862da Mon Sep 17 00:00:00 2001 From: Mark Einon Date: Sun, 14 Sep 2014 16:59:01 +0100 Subject: [PATCH] staging: et131x: Remove useless assignment to NULL The stack variable skb is no longer used after it's set to NULL. Don't set it to NULL. Reported-by: Dan Carpenter Signed-off-by: Mark Einon Signed-off-by: Greg Kroah-Hartman --- 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 8726754..3b62f76 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.7.4