[PATCH] ath11k: Fix warning on variable 'sar' dereference before check
Kalle Valo
kvalo at kernel.org
Sun May 22 05:29:04 PDT 2022
Baochen Qiang <quic_bqiang at quicinc.com> wrote:
> We are seeing below warning:
> warn: variable dereferenced before check 'sar'
>
> Fix it by moving ahead pointer check on 'sar'.
>
> Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3
>
> Fixes: 652f69ed9c1b ("ath11k: Add support for SAR")
> Reported-by: kernel test robot <lkp at intel.com>
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Signed-off-by: Baochen Qiang <quic_bqiang at quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
77bbbd5e0ed3 ath11k: Fix warning on variable 'sar' dereference before check
--
https://patchwork.kernel.org/project/linux-wireless/patch/20220517004844.2412660-1-quic_bqiang@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath11k
mailing list