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.carpen...@oracle.com> Signed-off-by: Mark Einon <mark.ei...@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 _______________________________________________ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel