OSDN Git Service
rtl8723au: Fix smatch errors/warnings for hal/HalDMOutSrc8192C_CE.c
Smatch shows the following:
CHECK /home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:313 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:313 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:327 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:327 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:334 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:334 odm_TXPowerTrackingCallback_ThermalMeter_92C() error: buffer overflow 'TxPwrLevel' 2 <= 2
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:2014 rtl8192c_PHY_APCalibrate() info: ignoring unreachable code.
/home/finger/rtl8723au/hal/HalDMOutSrc8192C_CE.c:2014 rtl8192c_PHY_APCalibrate() info: ignoring unreachable code.
The buffer overflow errors are due to an off-by-one error.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>