Re: [Patch net-next] net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids'

From: Arnd Bergmann
Date: Fri Jul 15 2022 - 03:41:13 EST


On Fri, Jul 15, 2022 at 7:33 AM Arun Ramadoss
<arun.ramadoss@xxxxxxxxxxxxx> wrote:
>
> This patch removes the of_match_ptr() pointer when dereferencing the
> ksz_dt_ids which produce the unused variable warning.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Suggested-by: Arnd Bergmann <arnd@xxxxxxxxxx>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@xxxxxxxxxxxxx>

Looks good to me, thanks!

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>