]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD:fix boolreturn.cocci warning
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Tue, 19 Oct 2021 04:14:22 +0000 (04:14 +0000)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 19 Oct 2021 14:36:48 +0000 (10:36 -0400)
commitdc529cae2a70cb63b0563c5522be6618dd8f900f
treed46dadaf290b667d4beaed5f3c1240ee243fe05f
parent163125c041dfa28df44f4f927e96ac471e832f95
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>
fs/nfsd/nfssvc.c