forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 645e752c5a84baeb21015cdc85fc05b7d16312c8
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