Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: fix right side of condition

TxNum value is compared against ODM_RF_PATH_D,
which is inconsistent. Compare it against
RF_MAX_TX_NUM, as in other places in the same file.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/147631fe6f4f5de84cc54a62ba71d739b92697be.1628329348.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabio Aiuto and committed by
Greg Kroah-Hartman
e3678dc1 3bd25c95

+1 -1
+1 -1
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
··· 350 350 if (RfPath > ODM_RF_PATH_D) 351 351 return; 352 352 353 - if (TxNum > ODM_RF_PATH_D) 353 + if (TxNum > RF_MAX_TX_NUM) 354 354 return; 355 355 356 356 for (i = 0; i < rateNum; ++i) {