Skip to content

Commit da53af8

Browse files
rarun-mchpdavem330
authored andcommitted
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]>
1 parent fd18d5f commit da53af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/microchip/ksz_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static struct spi_driver ksz_spi_driver = {
215215
.driver = {
216216
.name = "ksz-switch",
217217
.owner = THIS_MODULE,
218-
.of_match_table = of_match_ptr(ksz_dt_ids),
218+
.of_match_table = ksz_dt_ids,
219219
},
220220
.id_table = ksz_spi_ids,
221221
.probe = ksz_spi_probe,

0 commit comments

Comments
 (0)