Skip to content

Commit ec67293

Browse files
idoschkuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Vadim Pasternak <[email protected]> Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Wojciech Drewek <[email protected]> Link: https://patch.msgid.link/ea646f5d7642fffd5393fa23650660ab8f77a511.1722345311.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e7e3a45 commit ec67293

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/mellanox/mlxsw/core_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,6 @@ mlxsw_thermal_module_init(struct mlxsw_thermal *thermal,
468468
static void mlxsw_thermal_module_fini(struct mlxsw_thermal_module *module_tz)
469469
{
470470
mlxsw_thermal_module_tz_fini(module_tz->tzdev);
471-
module_tz->tzdev = NULL;
472-
module_tz->parent = NULL;
473471
}
474472

475473
static int

0 commit comments

Comments
 (0)