diff options
author | 2024-07-30 15:58:15 +0200 | |
---|---|---|
committer | 2024-07-31 18:38:28 -0700 | |
commit | d81d71434036642882b55cf93432bf4a1720a481 (patch) | |
tree | 7fa43aad41d03f0ac0aceec3b7228e6776c22862 /net/core/netdev-genl.c | |
parent | mlxsw: core_thermal: Remove another unnecessary check (diff) | |
download | wireguard-linux-d81d71434036642882b55cf93432bf4a1720a481.tar.xz wireguard-linux-d81d71434036642882b55cf93432bf4a1720a481.zip |
mlxsw: core_thermal: Fold two loops into one
There is no need to traverse the same array twice. Do it once by folding
both loops into one.
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/81756744ed532aaa9249a83fc08757accfe8b07c.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