From: Changcheng Deng Date: Tue, 19 Oct 2021 04:14:22 +0000 (+0000) Subject: NFSD:fix boolreturn.cocci warning X-Git-Tag: v5.15.154~488 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60f18f40ca8875f0fca49521e136a1975a1c1f1a;p=thirdparty%2Fkernel%2Fstable.git NFSD:fix boolreturn.cocci warning [ Upstream commit 291cd656da04163f4bba67953c1f2f823e0d1231 ] ./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 Signed-off-by: Changcheng Deng Signed-off-by: J. Bruce Fields Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 7df1505425edc..408cff8fe32d3 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; } /**