diff options
author | Ido Schimmel <idosch@nvidia.com> | 2024-07-30 15:58:12 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-31 18:38:27 -0700 |
commit | a1bb54b1a066e30e4130205a7dba78db9df56fa8 (patch) | |
tree | d2f7b75ad38d18b20a294e3b3e4238ed61648da6 /tools/perf/scripts/python | |
parent | 9c26a1d0a01c941706fd0be55915b4db87bbe7c3 (diff) |
mlxsw: core_thermal: Call thermal_zone_device_unregister() unconditionally
The function returns immediately if the thermal zone pointer is NULL so
there is no need to check it before calling the function.
Remove the check.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Link: https://patch.msgid.link/0bd251aa8ce03d3c951983aa6b4300d8205b88a7.1722345311.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions