summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChangcheng Deng <deng.changcheng@zte.com.cn>2021-10-19 06:14:22 +0200
committerJ. Bruce Fields <bfields@redhat.com>2021-10-19 16:36:48 +0200
commit291cd656da04163f4bba67953c1f2f823e0d1231 (patch)
treed46dadaf290b667d4beaed5f3c1240ee243fe05f /fs
parentnfsd: update create verifier comment (diff)
downloadlinux-291cd656da04163f4bba67953c1f2f823e0d1231.tar.xz
linux-291cd656da04163f4bba67953c1f2f823e0d1231.zip
NFSD:fix boolreturn.cocci warning
./fs/nfsd/nfssvc.c: 1072: 8-9: :WARNING return of 0/1 in function 'nfssvc_decode_voidarg' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfssvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 362e819ff06a..80431921e5d7 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -1069,7 +1069,7 @@ out_encode_err:
*/
bool nfssvc_decode_voidarg(struct svc_rqst *rqstp, struct xdr_stream *xdr)
{
- return 1;
+ return true;
}
/**