forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/ath/ath5k/ani.c
....@@ -501,7 +501,7 @@
501501
502502 if (as->ofdm_errors > ofdm_high || as->cck_errors > cck_high) {
503503 /* too many PHY errors - we have to raise immunity */
504
- bool ofdm_flag = as->ofdm_errors > ofdm_high ? true : false;
504
+ bool ofdm_flag = as->ofdm_errors > ofdm_high;
505505 ath5k_ani_raise_immunity(ah, as, ofdm_flag);
506506 ath5k_ani_period_restart(as);
507507