summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-03-28 22:37:29 +0100
committerJohannes Berg <johannes.berg@intel.com>2021-04-08 11:36:28 +0200
commit958574cbcc3ae31f18bbe0b1d7f3ab3f2bd109f1 (patch)
tree408b298526857e999097ebd572306bf2a13e9abc /net/mac80211
parent026dfac85f0a70cd1fd00181f1079b2c256b0e12 (diff)
mac80211: remove redundant assignment of variable result
The variable result is being assigned a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210328213729.65819-1-colin.king@canonical.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 5d06de61047a..2fba9db56e47 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1684,7 +1684,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local,
struct ieee80211_sub_if_data *sdata;
struct ieee80211_vif *vif;
struct sk_buff *skb;
- bool result = true;
+ bool result;
__le16 fc;
if (WARN_ON(skb_queue_empty(skbs)))