mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00
wifi: rtlwifi: remove always-true condition pointed out by GCC 12
The .value is a two-dim array, not a pointer. struct iqk_matrix_regs { bool iqk_done; long value[1][IQK_MATRIX_REG_NUM]; }; Acked-by: Kalle Valo <kvalo@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e950329880
commit
ee3db469dd
1 changed files with 1 additions and 4 deletions
|
@ -2386,10 +2386,7 @@ void rtl92d_phy_reload_iqk_setting(struct ieee80211_hw *hw, u8 channel)
|
||||||
rtl_dbg(rtlpriv, COMP_SCAN, DBG_LOUD,
|
rtl_dbg(rtlpriv, COMP_SCAN, DBG_LOUD,
|
||||||
"Just Read IQK Matrix reg for channel:%d....\n",
|
"Just Read IQK Matrix reg for channel:%d....\n",
|
||||||
channel);
|
channel);
|
||||||
if ((rtlphy->iqk_matrix[indexforchannel].
|
_rtl92d_phy_patha_fill_iqk_matrix(hw, true,
|
||||||
value[0] != NULL)
|
|
||||||
/*&&(regea4 != 0) */)
|
|
||||||
_rtl92d_phy_patha_fill_iqk_matrix(hw, true,
|
|
||||||
rtlphy->iqk_matrix[
|
rtlphy->iqk_matrix[
|
||||||
indexforchannel].value, 0,
|
indexforchannel].value, 0,
|
||||||
(rtlphy->iqk_matrix[
|
(rtlphy->iqk_matrix[
|
||||||
|
|
Loading…
Add table
Reference in a new issue