]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Remove dead code from total_vfs setter
authorVlad Dumitrescu <vdumitrescu@nvidia.com>
Thu, 18 Sep 2025 22:05:07 +0000 (15:05 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Sep 2025 00:03:50 +0000 (17:03 -0700)
commit6a46e4faa8fd848acec81bd6149a44c3b9b17de6
treedac1fe8f58e4bf2679edfc8055f72dd1e55a348a
parent85c7333c35f22cdb8391b4cacfdc496aec4162ae
net/mlx5: Remove dead code from total_vfs setter

The mlx5_devlink_total_vfs_set function branches based on per_pf_support
twice. Remove the second branch as the first one exits the function when
per_pf_support is false.

Accidentally added as part of commit a4c49611cf4f ("net/mlx5: Implement
devlink total_vfs parameter").

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-rdma/aMQWenzpdjhAX4fm@stanley.mountain/
Signed-off-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Link: https://patch.msgid.link/a6142a60-1948-439a-b0ae-ff1df26a37f8@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lib/nv_param.c