Patch "wifi: rtlwifi: remove always-true condition pointed out by GCC 12" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: rtlwifi: remove always-true condition pointed out by GCC 12

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-rtlwifi-remove-always-true-condition-pointed-out-by-gcc-12.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From ee3db469dd317e82f57b13aa3bc61be5cb60c2b4 Mon Sep 17 00:00:00 2001
From: Jakub Kicinski <kuba@xxxxxxxxxx>
Date: Fri, 20 May 2022 12:43:15 -0700
Subject: wifi: rtlwifi: remove always-true condition pointed out by GCC 12

From: Jakub Kicinski <kuba@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
Signed-off-by: Semyon Verchenko <semverchenko@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c
@@ -2385,10 +2385,7 @@ void rtl92d_phy_reload_iqk_setting(struc
 			rtl_dbg(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[


Patches currently in stable-queue which might be from kuba@xxxxxxxxxx are

queue-5.10/nfc-pn533-clear-nfc_target-before-being-used.patch
queue-5.10/net-af_packet-make-sure-to-pull-mac-header.patch
queue-5.10/net-lan9303-fix-read-error-execution-path.patch
queue-5.10/qed-gcc13-use-u16-for-fid-to-be-big-enough.patch
queue-5.10/ntb_netdev-use-dev_kfree_skb_any-in-interrupt-contex.patch
queue-5.10/hsr-disable-netpoll.patch
queue-5.10/net-add-inline-function-skb_csum_is_sctp.patch
queue-5.10/misdn-hfcpci-don-t-call-dev_kfree_skb-kfree_skb-unde.patch
queue-5.10/igb-do-not-free-q_vector-unless-new-one-was-allocate.patch
queue-5.10/net-switch-to-storing-kcov-handle-directly-in-sk_buf.patch
queue-5.10/hsr-synchronize-sequence-number-updates.patch
queue-5.10/net-ethernet-ti-fix-return-type-of-netcp_ndo_start_x.patch
queue-5.10/bonding-fix-link-recovery-in-mode-2-when-updelay-is-.patch
queue-5.10/skbuff-account-for-tail-adjustment-during-pull-opera.patch
queue-5.10/stmmac-fix-potential-division-by-0.patch
queue-5.10/misdn-hfcmulti-don-t-call-dev_kfree_skb-kfree_skb-un.patch
queue-5.10/misdn-hfcsusb-don-t-call-dev_kfree_skb-kfree_skb-und.patch
queue-5.10/sctp-sysctl-make-extra-pointers-netns-aware.patch
queue-5.10/ethtool-avoiding-integer-overflow-in-ethtool_phys_id.patch
queue-5.10/hamradio-baycom_epp-fix-return-type-of-baycom_send_p.patch
queue-5.10/hsr-add-a-rcu-read-lock-to-hsr_forward_skb.patch
queue-5.10/net-macsec-fix-net-device-access-prior-to-holding-a-.patch
queue-5.10/hsr-synchronize-sending-frames-to-have-always-increm.patch
queue-5.10/selftests-devlink-fix-the-fd-redirect-in-dummy_repor.patch
queue-5.10/wifi-rtlwifi-remove-always-true-condition-pointed-out-by-gcc-12.patch
queue-5.10/net-igc-use-skb_csum_is_sctp-instead-of-protocol-che.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux