thermal: intel: int340x: Drop pointless cast to unsigned long
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2023 18:45:17 +0000 (19:45 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Feb 2023 14:31:04 +0000 (15:31 +0100)
commitd0009d14e9853bb5f553a36df9fb7791deffc594
tree206d6e1819fa211244391614928ca22835dc88f7
parent67c6945867145edda3092c336aa4cf56f9986ed7
thermal: intel: int340x: Drop pointless cast to unsigned long

The explicit casting from int to unsigned long in
int340x_thermal_get_zone_temp() is pointless, becuase the multiplication
result is cast back to int by the assignment in the same statement, so
drop it.

No expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c