[Intel-wired-lan] [PATCH RFC iwl-next 02/12] idpf: stop using macros for accessing queue descriptors

Mina Almasry almasrymina at google.com
Thu May 16 17:45:49 UTC 2024


On Fri, May 10, 2024 at 8:28 AM Alexander Lobakin
<aleksander.lobakin at intel.com> wrote:
>
> In C, we have structures and unions.
> Casting `void *` via macros is not only error-prone, but also looks
> confusing and awful in general.
> In preparation for splitting the queue structs, replace it with a
> union and direct array dereferences.
>
> Signed-off-by: Alexander Lobakin <aleksander.lobakin at intel.com>

FWIW,

Reviewed-by: Mina Almasry <almasrymina at google.com>

-- 
Thanks,
Mina


More information about the Intel-wired-lan mailing list