Skip to content

Commit d361b69

Browse files
Yang LiJaegeuk Kim
authored andcommitted
f2fs: Simplify bool conversion
Fix the following coccicheck warning: ./fs/f2fs/sysfs.c:491:41-46: WARNING: conversion to bool not needed here Reported-by: Abaci Robot <[email protected]> Signed-off-by: Yang Li <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 2a64e30 commit d361b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
491491

492492
if (!strcmp(a->attr.name, "gc_urgent_high_remaining")) {
493493
spin_lock(&sbi->gc_urgent_high_lock);
494-
sbi->gc_urgent_high_limited = t == 0 ? false : true;
494+
sbi->gc_urgent_high_limited = t != 0;
495495
sbi->gc_urgent_high_remaining = t;
496496
spin_unlock(&sbi->gc_urgent_high_lock);
497497

0 commit comments

Comments
 (0)