[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <195a39b6-e4e6-48b0-bb47-3c86d8be20fa@linux.dev>
Date: Tue, 2 Sep 2025 08:41:23 +0100
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: Brahmajit Das <listout@...tout.xyz>
Cc: andrew+netdev@...n.ch, anthony.l.nguyen@...el.com, davem@...emloft.net,
intel-wired-lan@...ts.osuosl.org, kuba@...nel.org, netdev@...r.kernel.org,
przemyslaw.kitszel@...el.com
Subject: Re: [PATCH v2] net: intel: fm10k: Fix parameter idx set but not used
On 02/09/2025 08:24, Brahmajit Das wrote:
> 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@...ux.dev>
> Signed-off-by: Brahmajit Das <listout@...tout.xyz>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Powered by blists - more mailing lists