From: Jeff Layton Date: Fri, 6 Jan 2023 15:39:01 +0000 (-0500) Subject: nfsd: simplify test_bit return in NFSD_FILE_KEY_FULL comparator X-Git-Tag: v6.6.17~4755^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d69b8dbfd0866abc5ec84652cc1c10fc3d4d91ef;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index c36e303..568963b 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -189,7 +189,7 @@ static int nfsd_file_obj_cmpfn(struct rhashtable_compare_arg *arg, return 1; if (!nfsd_match_cred(nf->nf_cred, key->cred)) return 1; - if (!!test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc) + if (test_bit(NFSD_FILE_GC, &nf->nf_flags) != key->gc) return 1; if (test_bit(NFSD_FILE_HASHED, &nf->nf_flags) == 0) return 1;