iwlwifi: dbg: mark a variable __maybe_unused
authorJohannes Berg <johannes.berg@intel.com>
Sat, 25 Apr 2020 10:04:51 +0000 (13:04 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 8 May 2020 06:52:48 +0000 (09:52 +0300)
commit281277b206f03f8e66e6d5c151d75ac9c15e066d
tree524dd23dcc5f3a7434d6397c01c4b300f9a1c951
parent92f78d4b15a40f6b055be73bbecc2e79b10638f0
iwlwifi: dbg: mark a variable __maybe_unused

If CONFIG_IWLWIFI_DEBUGFS is not set, the variable is assigned
but not checked, resulting in a compiler warning. Suppress it,
we need the variable for the debugfs-enabled case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200425130140.485f886f5a6c.I8a91c560c26cced33b15d8419caebb53a9abcc2d@changeid
drivers/net/wireless/intel/iwlwifi/fw/dbg.c