diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2021-12-15 10:38:58 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-01-04 13:20:57 -0800 |
commit | d361b690b6fcd0acdb34a56e9054a6eb6be4b0c3 (patch) | |
tree | 0baa10c3f8cdd1eb9de7cb8364f74be514df26a0 /fs/f2fs | |
parent | 2a64e303e3051550c75897239174e399dfcb8b7e (diff) | |
download | linux-d361b690b6fcd0acdb34a56e9054a6eb6be4b0c3.tar.bz2 |
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 <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index c22bee84c8ec..f8a14b1e2ef7 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -491,7 +491,7 @@ out: if (!strcmp(a->attr.name, "gc_urgent_high_remaining")) { spin_lock(&sbi->gc_urgent_high_lock); - sbi->gc_urgent_high_limited = t == 0 ? false : true; + sbi->gc_urgent_high_limited = t != 0; sbi->gc_urgent_high_remaining = t; spin_unlock(&sbi->gc_urgent_high_lock); |