Skip to content
Commit f2a0c187 authored by Colin Ian King's avatar Colin Ian King Committed by Johannes Berg
Browse files

mac80211: remove the need for variable rates_idx



Currently rates_idx is being initialized with the value -1 and this
value is never read so the initialization is redundant and can be
removed. The next time the variable is used it is assigned a value
that is returned a few statements later. Just return i - 1 and
remove the need for rates_idx.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200722153830.959010-1-colin.king@canonical.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent df78a0c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment