diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-08-13 10:52:20 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-08-22 22:07:10 +0200 |
commit | ee188ee6ed3821ec20c1d3e8b7aacd844924b10b (patch) | |
tree | 83afacab40329d6ad311553d8e37e0ea195fe29a | |
parent | 1a6e1004f3225bebbe27e1575c22484a56e96f56 (diff) | |
download | linux-stable-ee188ee6ed3821ec20c1d3e8b7aacd844924b10b.tar.gz linux-stable-ee188ee6ed3821ec20c1d3e8b7aacd844924b10b.tar.bz2 linux-stable-ee188ee6ed3821ec20c1d3e8b7aacd844924b10b.zip |
thermal: intel: intel_soc_dts_iosf: Remove redundant check
Remove the redundant check in remove_dts_thermal_zone() because all of
its existing callers pass a valid pointer as the argument.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/thermal/intel/intel_soc_dts_iosf.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/thermal/intel/intel_soc_dts_iosf.c b/drivers/thermal/intel/intel_soc_dts_iosf.c index 7a66d0f077b0..d00def3c4703 100644 --- a/drivers/thermal/intel/intel_soc_dts_iosf.c +++ b/drivers/thermal/intel/intel_soc_dts_iosf.c @@ -212,11 +212,9 @@ static int soc_dts_enable(int id) static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts) { - if (dts) { - iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, - SOC_DTS_OFFSET_ENABLE, dts->store_status); - thermal_zone_device_unregister(dts->tzone); - } + iosf_mbi_write(BT_MBI_UNIT_PMC, MBI_REG_WRITE, + SOC_DTS_OFFSET_ENABLE, dts->store_status); + thermal_zone_device_unregister(dts->tzone); } static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts, |