Skip to content

Commit 73afd78

Browse files
Gerhard Englederkuba-moo
authored andcommitted
tsnep: Fix unused warning for 'tsnep_of_match'
Kernel test robot found the following warning: drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used [-Wunused-const-variable=] of_match_ptr() compiles into NULL if CONFIG_OF is disabled. tsnep_of_match exists always so use of of_match_ptr() is useless. Fix warning by dropping of_match_ptr(). Reported-by: kernel test robot <[email protected]> Signed-off-by: Gerhard Engleder <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f574f7f commit 73afd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/engleder/tsnep_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
12821282
static struct platform_driver tsnep_driver = {
12831283
.driver = {
12841284
.name = TSNEP,
1285-
.of_match_table = of_match_ptr(tsnep_of_match),
1285+
.of_match_table = tsnep_of_match,
12861286
},
12871287
.probe = tsnep_probe,
12881288
.remove = tsnep_remove,

0 commit comments

Comments
 (0)