aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_spi.c
diff options
context:
space:
mode:
authorArun Ramadoss <[email protected]>2022-07-15 05:33:34 +0000
committerDavid S. Miller <[email protected]>2022-07-18 10:29:30 +0000
commitda53af8cb9329797dfd12f9034adafc4a1e01620 (patch)
tree85131abb1bd7a89b35464e9134a54e37aca529a2 /drivers/net/dsa/microchip/ksz_spi.c
parentMerge branch 'tls-rx-avoid-skb_cow_data' (diff)
downloadkernel-da53af8cb9329797dfd12f9034adafc4a1e01620.tar.gz
kernel-da53af8cb9329797dfd12f9034adafc4a1e01620.zip
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 <[email protected]> Suggested-by: Arnd Bergmann <[email protected]> Signed-off-by: Arun Ramadoss <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_spi.c')
-rw-r--r--drivers/net/dsa/microchip/ksz_spi.c2
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,