Re: [RFC PATCH] fs/dlm/dir: remove unuse varible count_match

Alexander Aring <[email protected]>
Newsgroups dev.linux.lists.gfs2,org.kernel.vger.linux-kernel
Message-ID <CAK-6q+jkL6ZVD3W7byROpUBwSEz4PP2vQcVdkfuaKbBAQUPyog@mail.gmail.com>
Hi,

On Wed, Jan 7, 2026 at 2:36 AM <[email protected]> wrote:
>
> From: Alex Shi <[email protected]>
>
> The variable was never used after introduced. Better to comment it if we
> want to keep the info.
>
> fs/dlm/dir.c:65:26: error: variable 'count_match' set but not used [-Werror,-Wunused-but-set-variable]
>    65 |         unsigned int count = 0, count_match = 0, count_bad = 0, count_add = 0;
>       |                                 ^
> 1 error generated.
>
> Signed-off-by: Alex Shi <[email protected]>
> Cc: [email protected]
> Cc: Alexander Aring <[email protected]>
> Cc: David Teigland <[email protected]>

Acked-by: Alexander Aring <[email protected]>

- Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.