diff options
author | Arnd Bergmann <[email protected]> | 2024-10-18 15:18:34 +0000 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2024-10-23 17:33:47 +0200 |
commit | cadae7ead4434d6c4ca15fb74cc729fb868fcca3 (patch) | |
tree | 88754b3261f7c7c708c55a1d4e58781d82d0621d /tools/perf/scripts/python/syscall-counts.py | |
parent | 188a1bf894323bf3a90361676da8364c82ce6d32 (diff) |
wifi: iwlwifi: work around -Wenum-compare-conditional warning
This is one of only three -Wenum-compare-conditional warnings we get
in randconfig builds:
drivers/net/wireless/intel/iwlwifi/mvm/sta.c:4331:17: error: conditional expression between different enumeration types ('enum iwl_fw_sta_type' and 'enum iwl_sta_type') [-Werror,-Wenum-compare-conditional]
4331 | u32 type = mld ? STATION_TYPE_PEER : IWL_STA_LINK;
| ^ ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
This is a false positive since the code works as intended, but the
warning is otherwise sensible, so slightly rewrite it in order to
not trigger the warning.
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions