ocfs2: Simplify return statement in ocfs2_filecheck_attr_store()
PATCH 1/1 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 Thorsten Blum <[email protected]>
--- fs/ocfs2/filecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/filecheck.c +1 -1
@@ -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; }
Quoted 5 lines · Thorsten Blum
Don't negate 'ret' and simplify the return statement.
No functional changes intended.
Signed-off-by Thorsten Blum <[email protected]>
Reviewed-by Joseph Qi <[email protected]>
Quoted 15 lines
--- fs/ocfs2/filecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ocfs2/filecheck.c +1
-1@@ -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; }