diff options
author | 2024-07-30 15:58:13 +0200 | |
---|---|---|
committer | 2024-07-31 18:38:28 -0700 | |
commit | 4be011d76408bb7ecfd2f3e00ab89c9a54ce94ce (patch) | |
tree | ce40bc7d71764f73b55eb292cec83542e59c76cc /net/core/netdev-genl.c | |
parent | mlxsw: core_thermal: Call thermal_zone_device_unregister() unconditionally (diff) | |
download | wireguard-linux-4be011d76408bb7ecfd2f3e00ab89c9a54ce94ce.tar.xz wireguard-linux-4be011d76408bb7ecfd2f3e00ab89c9a54ce94ce.zip |
mlxsw: core_thermal: Remove unnecessary check
mlxsw_thermal_modules_init() allocates an array of modules and then
calls mlxsw_thermal_module_init() to initialize each entry in the array.
It is therefore impossible for mlxsw_thermal_module_init() to encounter
an entry that is already initialized and has its 'parent' pointer set.
Remove the unnecessary 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>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/netdev-genl.c')
0 files changed, 0 insertions, 0 deletions