nilfs2: remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 21 Sep 2022 03:48:03 +0000 (12:48 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:21:44 +0000 (14:21 -0700)
commitda6f79164e98de4ab3f2fdeea4875207fe282014
treeab971db8ab3ffdce9a04d4809040ef421aa2422b
parent0badb2e46a7699d09ef09a2c7f8f4fe66c15e606
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/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