Skip to content

Commit f64397e

Browse files
Xichao Zhaochucklever
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 7569065 commit f64397e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static int nfsd_dsr_get(void *data, u64 *val)
2626

2727
static int nfsd_dsr_set(void *data, u64 val)
2828
{
29-
nfsd_disable_splice_read = (val > 0) ? true : false;
29+
nfsd_disable_splice_read = (val > 0);
3030
return 0;
3131
}
3232

0 commit comments

Comments
 (0)