OSDN Git Service

thermal/drivers/acerhdf: Remove pointless governor test
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 1 Mar 2023 20:14:46 +0000 (21:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Mar 2023 19:45:03 +0000 (20:45 +0100)
commit20918ccacd06eea4a4ff457bd86cae62859461a2
tree8be50d07aa258e7bf6e0d16e87341e3289aea3cd
parentcad450d19d5ee0cd182778835aa82f7cf2678eae
thermal/drivers/acerhdf: Remove pointless governor test

The thermal zone parameter specifies the bang-bang governor.

The Kconfig selects the bang-bang governor. So it is pointless to test
if the governor was set for the thermal zone assuming it may not have
been compiled-in.

Remove the test and prevent another access into the thermal internals.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter Kaestle <peter@piie.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/acerhdf.c