An error occurred while fetching folder content.
mlxsw: core_thermal: Call thermal_zone_device_unregister() unconditionally
Ido Schimmel authored

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: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarVadim Pasternak <vadimp@nvidia.com>
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarWojciech Drewek <wojciech.drewek@intel.com>
Link: https://patch.msgid.link/0bd251aa8ce03d3c951983aa6b4300d8205b88a7.1722345311.git.petrm@nvidia.com

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
a1bb54b1
Name Last commit Last update