diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-22 16:38:30 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-07-31 09:24:22 +0200 |
commit | f2a0c18759072dbd5135f72a8035f6fb838df425 (patch) | |
tree | 14abcf0589cd3b4937c5c17cf5e515a6e205d2cb /tools/perf/scripts/python/check-perf-trace.py | |
parent | df78a0c0b67de58934877aad61e0431a2bd0caf1 (diff) |
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: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200722153830.959010-1-colin.king@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions