Skip to content
Commit 51d87bc2 authored by Fengguang Wu's avatar Fengguang Wu Committed by J. Bruce Fields
Browse files

nfsd: fix boolreturn.cocci warnings

fs/nfsd/nfs4state.c:926:8-9: WARNING: return of 0/1 in function 'nfs4_delegation_exists' with return type bool
fs/nfsd/nfs4state.c:2955:9-10: WARNING: return of 0/1 in function 'nfsd4_compound_in_session' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: 68b18f52

 ("nfsd: make nfs4_get_existing_delegation less confusing")
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
[bfields: also fix -EAGAIN]
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 353601e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment