diff options
author | Nathan Chancellor <[email protected]> | 2019-03-07 16:57:35 -0700 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2019-03-29 11:22:23 +0100 |
commit | 344c9719c508bb3ef4e9c134066c83ff00ab6206 (patch) | |
tree | a065fb600388021357b9feab370c3c14c0176225 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | eb9b64e3a9f8483e6e54f4e03b2ae14ae5db2690 (diff) |
cfg80211: Change an 'else if' into an 'else' in cfg80211_calculate_bitrate_he
When building with -Wsometimes-uninitialized, Clang warns:
net/wireless/util.c:1223:11: warning: variable 'result' is used
uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
Clang can't evaluate at this point that WARN(1, ...) always returns true
because __ret_warn_on is defined as !!(condition), which isn't
immediately evaluated as 1. Change this branch to else so that it's
clear to Clang that we intend to bail out here.
Link: https://github.com/ClangBuiltLinux/linux/issues/382
Suggested-by: Nick Desaulniers <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions