From: Arun Ramadoss Date: Fri, 15 Jul 2022 05:33:34 +0000 (+0530) Subject: net: dsa: microchip: fix Clang -Wunused-const-variable warning on 'ksz_dt_ids' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=da53af8cb9329797dfd12f9034adafc4a1e01620;p=linux.git 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 Suggested-by: Arnd Bergmann Signed-off-by: Arun Ramadoss Reviewed-by: Arnd Bergmann Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/microchip/ksz_spi.c b/drivers/net/dsa/microchip/ksz_spi.c index 4844830dca726..05bd089795f83 100644 --- a/drivers/net/dsa/microchip/ksz_spi.c +++ b/drivers/net/dsa/microchip/ksz_spi.c @@ -215,7 +215,7 @@ static struct spi_driver ksz_spi_driver = { .driver = { .name = "ksz-switch", .owner = THIS_MODULE, - .of_match_table = of_match_ptr(ksz_dt_ids), + .of_match_table = ksz_dt_ids, }, .id_table = ksz_spi_ids, .probe = ksz_spi_probe,