projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0badb2e
)
nilfs2: remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Wed, 21 Sep 2022 03:48:03 +0000
(12:48 +0900)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:21:44 +0000
(14:21 -0700)
Return the value nilfs_segctor_sync() directly instead of storing it in
another redundant variable.
Link:
https://lkml.kernel.org/r/20220831033403.302184-1-ye.xingchen@zte.com.cn
Link:
https://lkml.kernel.org/r/20220921034803.2476-3-konishi.ryusuke@gmail.com
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/segment.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/segment.c
b/fs/nilfs2/segment.c
index 0afe0832c7547174e17b4efa6b39b51d0c131ee6..9abae2c9120edcd7fc3ea1e7b7a992e3102d6dc5 100644
(file)
--- 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);
}
/**