]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids'
authorArun Ramadoss <arun.ramadoss@microchip.com>
Fri, 15 Jul 2022 05:33:34 +0000 (11:03 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:29:30 +0000 (11:29 +0100)
commit749d555a0438e74886d50f0944e0490f0c42c5b8
tree85131abb1bd7a89b35464e9134a54e37aca529a2
parente2b5fed643578efc1ad7889ad9106e1254c84d09
net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids'

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@intel.com>
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_spi.c