diff options
author | Arun Ramadoss <arun.ramadoss@microchip.com> | 2022-07-15 11:03:34 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-18 11:29:30 +0100 |
commit | da53af8cb9329797dfd12f9034adafc4a1e01620 (patch) | |
tree | 85131abb1bd7a89b35464e9134a54e37aca529a2 /drivers/net/dsa | |
parent | fd18d5f132bfcdb67a82b477ea9ddc6df6e6ce73 (diff) | |
download | linux-da53af8cb9329797dfd12f9034adafc4a1e01620.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz_spi.c b/drivers/net/dsa/microchip/ksz_spi.c index 4844830dca72..05bd089795f8 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, |