Re: [PATCH] ath9k: initialize arrays at compile time

From: Toke Høiland-Jørgensen
Date: Mon Mar 21 2022 - 09:31:22 EST


trix@xxxxxxxxxx writes:

> From: Tom Rix <trix@xxxxxxxxxx>
>
> Early clearing of arrays with
> memset(array, 0, size);
> is equivilent to initializing the array in its decl with
> array[size] = { 0 };
>
> Since compile time is preferred over runtime,
> convert the memsets to initializations.
>
> Signed-off-by: Tom Rix <trix@xxxxxxxxxx>

Cf the discussion in the replies, please resubmit with empty
initialisers ({}), and fix up the commit message.

-Toke