Dmitry Antipov <dmantipov@xxxxxxxxx> wrote: > Since commit 8896934c1684 ("ath9k_hw: remove direct accesses to channel > mode flags") changes 'ar9550_hw_get_modes_txgain_index()' so it never > returns -EINVAL, and 'ar9561_hw_get_modes_txgain_index()' never returns > negative value too, an extra check in 'ar9003_hw_process_ini()' may be > dropped. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Dmitry Antipov <dmantipov@xxxxxxxxx> > Reviewed-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx> > Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx> > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> 2 patches applied to ath-next branch of ath.git, thanks. e6a1107bf5eb wifi: ath9k: simplify ar9003_hw_process_ini() 352281e4a0a0 wifi: ath9k: use u32 for txgain indexes -- https://patchwork.kernel.org/project/linux-wireless/patch/20230823182401.196270-1-dmantipov@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches