From: Mark Einon Date: Sun, 14 Sep 2014 15:59:01 +0000 (+0100) Subject: staging: et131x: Remove useless assignment to NULL X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c55fe2018f7f84e3620e85e4b0d5d06274862da;p=linux-beck.git 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 --- diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 8726754b737c..3b62f7691804 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; }