]> git.baikalelectronics.ru Git - kernel.git/commit
tsnep: Fix unused warning for 'tsnep_of_match'
authorGerhard Engleder <gerhard@engleder-embedded.com>
Thu, 4 Aug 2022 18:39:34 +0000 (20:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Aug 2022 03:44:28 +0000 (20:44 -0700)
commitcfef3d124bc01193c7647f3cd7d8fad7552c86b8
treeaf746397f9670a42716f4e0635950a16ae28cf26
parent76e97eb6c5a45d4499ca9d45d89230a678bda6f7
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>
drivers/net/ethernet/engleder/tsnep_main.c