]> git.baikalelectronics.ru Git - kernel.git/commit
topology: Fix up build warning in topology_is_visible()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 06:26:53 +0000 (08:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Apr 2022 10:53:11 +0000 (12:53 +0200)
commitc0ffd85ebf511f61d4b1b0620039cbbe06d0da21
tree857264d95fffd5f0a191fa1e41a21d07ae823aa1
parent1a46a4002f9390d3010d25496a8c9441fed99dde
topology: Fix up build warning in topology_is_visible()

Commit fd8b216027d8 ("topology/sysfs: Hide PPIN on systems that do not
support it.") caused a build warning on some configurations:

drivers/base/topology.c: In function 'topology_is_visible':
drivers/base/topology.c:158:24: warning: unused variable 'dev' [-Wunused-variable]
  158 |         struct device *dev = kobj_to_dev(kobj);

Fix this up by getting rid of the variable entirely.

Fixes: fd8b216027d8 ("topology/sysfs: Hide PPIN on systems that do not support it.")
Cc: Tony Luck <tony.luck@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20220422062653.3899972-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/topology.c