Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSD: Drop redundant conversion to bool

The result of integer comparison already evaluates to bool. No need for
explicit conversion.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Xichao Zhao and committed by
Chuck Lever
f64397e0 7569065f

+1 -1
+1 -1
fs/nfsd/debugfs.c
··· 26 26 27 27 static int nfsd_dsr_set(void *data, u64 val) 28 28 { 29 - nfsd_disable_splice_read = (val > 0) ? true : false; 29 + nfsd_disable_splice_read = (val > 0); 30 30 return 0; 31 31 } 32 32