diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-20 12:43:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-09 10:22:53 +0200 |
commit | 46406aef7cd5fb410115619db8323ad05d2315c5 (patch) | |
tree | 3ad8ecc3863b47010de629fc52f2dd58de197dba | |
parent | 681eb3c36dd80c44a12c23598669bfebbace5d0c (diff) | |
download | linux-stable-46406aef7cd5fb410115619db8323ad05d2315c5.tar.gz linux-stable-46406aef7cd5fb410115619db8323ad05d2315c5.tar.bz2 linux-stable-46406aef7cd5fb410115619db8323ad05d2315c5.zip |
wifi: rtlwifi: remove always-true condition pointed out by GCC 12
commit ee3db469dd317e82f57b13aa3bc61be5cb60c2b4 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c index de98d88199d6..861037fad36a 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c @@ -2414,10 +2414,7 @@ void rtl92d_phy_reload_iqk_setting(struct ieee80211_hw *hw, u8 channel) RT_TRACE(rtlpriv, COMP_SCAN, DBG_LOUD, "Just Read IQK Matrix reg for channel:%d....\n", channel); - if ((rtlphy->iqk_matrix[indexforchannel]. - value[0] != NULL) - /*&&(regea4 != 0) */) - _rtl92d_phy_patha_fill_iqk_matrix(hw, true, + _rtl92d_phy_patha_fill_iqk_matrix(hw, true, rtlphy->iqk_matrix[ indexforchannel].value, 0, (rtlphy->iqk_matrix[ |