Skip to content
Commit 4c60c805 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402030641.zUTuACYV-lkp@intel.com/


Fixes: 09059c67 ("wifi: iwlwifi: prepare for reading PPAG table from UEFI")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5f9c1f8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment