diff options
author | 2024-07-30 15:58:14 +0200 | |
---|---|---|
committer | 2024-07-31 18:38:28 -0700 | |
commit | 2a1c9dcb52ddc2916115e4a781f9f2a09c536d97 (patch) | |
tree | fce57f00c562e7e46ba44cf334d2f845b3c2ccd0 /net/core/netdev-genl.c | |
parent | mlxsw: core_thermal: Remove unnecessary check (diff) | |
download | wireguard-linux-2a1c9dcb52ddc2916115e4a781f9f2a09c536d97.tar.xz wireguard-linux-2a1c9dcb52ddc2916115e4a781f9f2a09c536d97.zip |
mlxsw: core_thermal: Remove another unnecessary check
mlxsw_thermal_modules_init() allocates an array of modules and then
initializes each entry by calling mlxsw_thermal_module_init() which
among other things initializes the 'parent' pointer of the entry.
mlxsw_thermal_modules_init() then traverses over the array again, but
skips over entries that do not have their 'parent' pointer set which is
impossible given the above.
Therefore, 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>
Link: https://patch.msgid.link/fb3e8ded422a441436431d5785b900f11ffc9621.1722345311.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/netdev-genl.c')
0 files changed, 0 insertions, 0 deletions