Skip to content

Commit d69b8db

Browse files
jtlaytonchucklever
authored andcommitted
nfsd: simplify test_bit return in NFSD_FILE_KEY_FULL comparator
test_bit returns bool, so we can just compare the result of that to the key->gc value without the "!!". Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 6c31e4c commit d69b8db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfsd/filecache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static int nfsd_file_obj_cmpfn(struct rhashtable_compare_arg *arg,
189189
return 1;
190190
if (!nfsd_match_cred(nf->nf_cred, key->cred))
191191
return 1;
192-
if (!!test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc)
192+
if (test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc)
193193
return 1;
194194
if (test_bit(NFSD_FILE_HASHED, &nf->nf_flags) == 0)
195195
return 1;

0 commit comments

Comments
 (0)