mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
026dfac85f
commit
958574cbcc
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user