Commit 7d9b0527 authored by Thorsten Blum's avatar Thorsten Blum Committed by Andrew Morton
Browse files

ocfs2: simplify return statement in ocfs2_filecheck_attr_store()



Don't negate 'ret' and simplify the return statement.

No functional changes intended.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: default avatarJoseph 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: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 1abf729e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}