]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: intel: fm10k: Fix parameter idx set but not used
authorBrahmajit Das <listout@listout.xyz>
Tue, 2 Sep 2025 07:24:22 +0000 (12:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:13 +0000 (12:45 +0100)
commit4dbc4e8cd5e95d9d79a8dfc43ffc7e84ebb3aed0
treec9da1a41cca1142aa0a6f137e264da302dacd085
parentd6af7fce2e162ac68e85d3a11eb6ac8c35b24b64
net: intel: fm10k: Fix parameter idx set but not used

[ Upstream commit 99e9c5ffbbee0f258a1da4eadf602b943f8c8300 ]

Variable idx is set in the loop, but is never used resulting in dead
code. Building with GCC 16, which enables
-Werror=unused-but-set-parameter= by default results in build error.
This patch removes the idx parameter, since all the callers of the
fm10k_unbind_hw_stats_q as 0 as idx anyways.

Suggested-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/fm10k/fm10k_common.c
drivers/net/ethernet/intel/fm10k/fm10k_common.h
drivers/net/ethernet/intel/fm10k/fm10k_pf.c
drivers/net/ethernet/intel/fm10k/fm10k_vf.c