mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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>
This commit is contained in:
parent
7569065fb1
commit
f64397e04b
|
|
@ -26,7 +26,7 @@ static int nfsd_dsr_get(void *data, u64 *val)
|
|||
|
||||
static int nfsd_dsr_set(void *data, u64 val)
|
||||
{
|
||||
nfsd_disable_splice_read = (val > 0) ? true : false;
|
||||
nfsd_disable_splice_read = (val > 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user