summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorGerhard Engleder <gerhard@engleder-embedded.com>2022-08-04 20:39:34 +0200
committerJakub Kicinski <kuba@kernel.org>2022-08-09 05:44:28 +0200
commit73afd7816c551c8da1c8f41462110a46a317eefb (patch)
treeaf746397f9670a42716f4e0635950a16ae28cf26 /drivers/net
parentnet: bpf: Use the protocol's set_rcvlowat behavior if there is one (diff)
downloadlinux-73afd7816c551c8da1c8f41462110a46a317eefb.tar.xz
linux-73afd7816c551c8da1c8f41462110a46a317eefb.zip
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 <lkp@intel.com> Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/engleder/tsnep_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c
index cb069a0af7b9..d98199f3414b 100644
--- a/drivers/net/ethernet/engleder/tsnep_main.c
+++ b/drivers/net/ethernet/engleder/tsnep_main.c
@@ -1282,7 +1282,7 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
static struct platform_driver tsnep_driver = {
.driver = {
.name = TSNEP,
- .of_match_table = of_match_ptr(tsnep_of_match),
+ .of_match_table = tsnep_of_match,
},
.probe = tsnep_probe,
.remove = tsnep_remove,