diff options
author | ye xingchen <[email protected]> | 2022-09-21 12:48:03 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-10-03 14:21:44 -0700 |
commit | da6f79164e98de4ab3f2fdeea4875207fe282014 (patch) | |
tree | ab971db8ab3ffdce9a04d4809040ef421aa2422b | |
parent | 0badb2e46a7699d09ef09a2c7f8f4fe66c15e606 (diff) |
nilfs2: remove the unneeded result variable
Return the value nilfs_segctor_sync() directly instead of storing it in
another redundant variable.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected]>
Signed-off-by: ye xingchen <[email protected]>
Signed-off-by: Ryusuke Konishi <[email protected]>
Cc: Minghao Chi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | fs/nilfs2/segment.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 0afe0832c754..9abae2c9120e 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -2235,7 +2235,6 @@ int nilfs_construct_segment(struct super_block *sb) struct the_nilfs *nilfs = sb->s_fs_info; struct nilfs_sc_info *sci = nilfs->ns_writer; struct nilfs_transaction_info *ti; - int err; if (!sci) return -EROFS; @@ -2243,8 +2242,7 @@ int nilfs_construct_segment(struct super_block *sb) /* A call inside transactions causes a deadlock. */ BUG_ON((ti = current->journal_info) && ti->ti_magic == NILFS_TI_MAGIC); - err = nilfs_segctor_sync(sci); - return err; + return nilfs_segctor_sync(sci); } /** |