mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
mlxsw: core_thermal: Remove unnecessary assignments
Setting both pointers to NULL is unnecessary since the code never checks whether these pointers are NULL or not. Remove the assignments. 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/ea646f5d7642fffd5393fa23650660ab8f77a511.1722345311.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
e7e3a450e5
commit
ec672931d1
|
|
@ -468,8 +468,6 @@ mlxsw_thermal_module_init(struct mlxsw_thermal *thermal,
|
|||
static void mlxsw_thermal_module_fini(struct mlxsw_thermal_module *module_tz)
|
||||
{
|
||||
mlxsw_thermal_module_tz_fini(module_tz->tzdev);
|
||||
module_tz->tzdev = NULL;
|
||||
module_tz->parent = NULL;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user