Skip to content

Commit 6dda4f0

Browse files
Alex Shiteigland
authored andcommitted
fs/dlm/dir: remove unuse variable count_match
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>
1 parent 596ce53 commit 6dda4f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/dlm/dir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq)
6262
char *b, *last_name = NULL;
6363
int error = -ENOMEM, last_len, nodeid, result;
6464
uint16_t namelen;
65-
unsigned int count = 0, count_match = 0, count_bad = 0, count_add = 0;
65+
unsigned int count = 0, count_bad = 0, count_add = 0;
6666

6767
log_rinfo(ls, "dlm_recover_directory");
6868

@@ -157,12 +157,12 @@ int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq)
157157
}
158158

159159
/* The name was found in rsbtbl, and the
160-
* master nodeid matches memb->nodeid. */
160+
* master nodeid matches memb->nodeid.
161161
162162
if (result == DLM_LU_MATCH &&
163163
nodeid == memb->nodeid) {
164164
count_match++;
165-
}
165+
}*/
166166

167167
/* The name was not found in rsbtbl and was
168168
* added with memb->nodeid as the master. */

0 commit comments

Comments
 (0)