Skip to content

Commit 73c18f9

Browse files
idoschkuba-moo
authored andcommitted
mlxsw: core_thermal: Remove unused arguments
'dev' and 'core' arguments are not used by mlxsw_thermal_module_init(). Remove them. 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/563fc7383f61809a306b9954872219eaaf3c689b.1722345311.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d81d714 commit 73c18f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ static void mlxsw_thermal_module_tz_fini(struct thermal_zone_device *tzdev)
446446
}
447447

448448
static void
449-
mlxsw_thermal_module_init(struct device *dev, struct mlxsw_core *core,
450-
struct mlxsw_thermal *thermal,
449+
mlxsw_thermal_module_init(struct mlxsw_thermal *thermal,
451450
struct mlxsw_thermal_area *area, u8 module)
452451
{
453452
struct mlxsw_thermal_module *module_tz;
@@ -501,7 +500,7 @@ mlxsw_thermal_modules_init(struct device *dev, struct mlxsw_core *core,
501500
return -ENOMEM;
502501

503502
for (i = 0; i < area->tz_module_num; i++) {
504-
mlxsw_thermal_module_init(dev, core, thermal, area, i);
503+
mlxsw_thermal_module_init(thermal, area, i);
505504
module_tz = &area->tz_module_arr[i];
506505
err = mlxsw_thermal_module_tz_init(module_tz);
507506
if (err)

0 commit comments

Comments
 (0)