wifi: iwlwifi: fw: fix compiler warning for NULL string print
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Feb 2024 09:53:18 +0000 (10:53 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Sun, 4 Feb 2024 09:53:18 +0000 (10:53 +0100)
commit4c60c8054dd8a36091aab585569c8d12a0085bd9
treedcc83d25ddc887a6062de6397e751b50da311334
parent5f9c1f8f9adaf32e4e39fcf260d4fc20dbfb77c9
wifi: iwlwifi: fw: fix compiler warning for NULL string print

When the system is compiled without CONFIG_DMI, the function
here statically returns NULL, leading to a compiler warning.
Catch that and print "<unknown>" in that case.

While at it, fix some indentation in the function.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402030641.zUTuACYV-lkp@intel.com/
Fixes: 09059c6764a8 ("wifi: iwlwifi: prepare for reading PPAG table from UEFI")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/regulatory.c