]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs/dlm/dir: remove unuse variable count_match
authorAlex Shi <alexs@kernel.org>
Tue, 20 Jan 2026 15:35:09 +0000 (10:35 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 20 Jan 2026 18:08:45 +0000 (12:08 -0600)
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 <alexs@kernel.org>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dir.c

index b1ab0adbd9d023c21a6e8e18404577c3473c0556..01c292379f5b25f3e646d4bbd60b8dc2608cd5f3 100644 (file)
@@ -62,7 +62,7 @@ int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq)
        char *b, *last_name = NULL;
        int error = -ENOMEM, last_len, nodeid, result;
        uint16_t namelen;
-       unsigned int count = 0, count_match = 0, count_bad = 0, count_add = 0;
+       unsigned int count = 0, count_bad = 0, count_add = 0;
 
        log_rinfo(ls, "dlm_recover_directory");
 
@@ -157,12 +157,12 @@ int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq)
                                }
 
                                /* The name was found in rsbtbl, and the
-                                * master nodeid matches memb->nodeid. */
+                                * master nodeid matches memb->nodeid.
 
                                if (result == DLM_LU_MATCH &&
                                    nodeid == memb->nodeid) {
                                        count_match++;
-                               }
+                               }*/
 
                                /* The name was not found in rsbtbl and was
                                 * added with memb->nodeid as the master. */