Commit 0c55fe20 authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bacb71ed
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment