]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ocfs2: simplify return statement in ocfs2_filecheck_attr_store()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 8 Apr 2025 10:34:07 +0000 (12:34 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:54:08 +0000 (17:54 -0700)
Don't negate 'ret' and simplify the return statement.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/filecheck.c

index 1ad7106741f84ce81e0d2fb0bef7ab095c4c26ec..3ad7baf6765807fb3509992b6a8f3f36aefba7a0 100644 (file)
@@ -505,5 +505,5 @@ static ssize_t ocfs2_filecheck_attr_store(struct kobject *kobj,
                ocfs2_filecheck_handle_entry(ent, entry);
 
 exit:
-       return (!ret ? count : ret);
+       return ret ?: count;
 }