summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2021-12-15 05:38:58 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2022-01-05 00:20:57 +0300
commitd361b690b6fcd0acdb34a56e9054a6eb6be4b0c3 (patch)
tree0baa10c3f8cdd1eb9de7cb8364f74be514df26a0 /fs/f2fs
parent2a64e303e3051550c75897239174e399dfcb8b7e (diff)
downloadlinux-d361b690b6fcd0acdb34a56e9054a6eb6be4b0c3.tar.xz
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.c2
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);