Commit ad843f39 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

staging: wlan-ng: remove redundant initialization of variable txresult

The variable txresult is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210422112046.245144-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1873cb87
...@@ -325,7 +325,7 @@ static netdev_tx_t p80211knetdev_hard_start_xmit(struct sk_buff *skb, ...@@ -325,7 +325,7 @@ static netdev_tx_t p80211knetdev_hard_start_xmit(struct sk_buff *skb,
struct net_device *netdev) struct net_device *netdev)
{ {
int result = 0; int result = 0;
int txresult = -1; int txresult;
struct wlandevice *wlandev = netdev->ml_priv; struct wlandevice *wlandev = netdev->ml_priv;
union p80211_hdr p80211_hdr; union p80211_hdr p80211_hdr;
struct p80211_metawep p80211_wep; struct p80211_metawep p80211_wep;
......
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