Skip to content

Commit 291cd65

Browse files
Changcheng DengJ. Bruce Fields
authored andcommitted
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>
1 parent 2336d69 commit 291cd65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfsd/nfssvc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp)
10691069
*/
10701070
bool nfssvc_decode_voidarg(struct svc_rqst *rqstp, struct xdr_stream *xdr)
10711071
{
1072-
return 1;
1072+
return true;
10731073
}
10741074

10751075
/**

0 commit comments

Comments
 (0)