]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: 8822c: fix missing brace warning for old compilers
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 22 May 2020 03:55:21 +0000 (11:55 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 May 2020 17:36:41 +0000 (20:36 +0300)
commit0dada7405c152d278f0214a752635840809aa0e2
tree57b68668a8de138122f5572385aaf889869d879d
parentdadccbb5a58aa8281c8aa30d0b15162ed54cb46d
rtw88: 8822c: fix missing brace warning for old compilers

For older versions of gcc, the array = {0}; will cause warnings:

drivers/net/wireless/realtek/rtw88/rtw8822c.c: In function 'rtw8822c_power_trim':
>> drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning:
>> missing braces around initializer [-Wmissing-braces]
s8 bb_gain[2][8] = {0};
^
drivers/net/wireless/realtek/rtw88/rtw8822c.c:1039:2: warning: (near
initialization for 'bb_gain[0]') [-Wmissing-braces]

Fixes: 96d491ce310f ("rtw88: set power trim according to efuse PG values")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200522035521.12295-1-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8822c.c