Re: [PATCH ath-next] wifi: ath9k: remove TX99 power array zero init
From: Toke Høiland-Jørgensen
Date: Mon Jun 01 2026 - 11:18:55 EST
Rosen Penev <rosenp@xxxxxxxxx> writes:
> This array is fully initialized in the loop itself. No need to zero
> initialize and then overwrite.
>
> Remove static from the array. This was a holdover from when the array
> was a static global variable. It no longer confers any benefit.
>
> Also add a min() call to avoid the manual if/ternary operation.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>