diff options
author | 2024-10-18 15:18:34 +0000 | |
---|---|---|
committer | 2024-10-23 17:33:47 +0200 | |
commit | cadae7ead4434d6c4ca15fb74cc729fb868fcca3 (patch) | |
tree | 88754b3261f7c7c708c55a1d4e58781d82d0621d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wifi: mac80211: re-order assigning channel in activate links (diff) | |
download | wireguard-linux-cadae7ead4434d6c4ca15fb74cc729fb868fcca3.tar.xz wireguard-linux-cadae7ead4434d6c4ca15fb74cc729fb868fcca3.zip |
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 <arnd@arndb.de>
Link: https://patch.msgid.link/20241018151841.3821671-1-arnd@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions