Skip to contentSkip to conversation

f2fs: remove unneeded variable from f2fs_sync_fs

PATCH In review Namjae Jeon 1 participant 1 message Dec 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 f2fs: remove unneeded variable from f2fs_sync_fs

From: Namjae Jeon <[email protected]>

We can directly return '0' from the function, instead of introducing a 'ret' variable.

---
 fs/f2fs/super.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/super.c +1 -2
index 86f8549..39ba11a 100644
@@ -119,7 +119,6 @@ static void f2fs_put_super(struct super_block *sb)
 int f2fs_sync_fs(struct super_block *sb, int sync)
 {
 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
-	int ret = 0;
 
 	if (!sbi->s_dirty && !get_pages(sbi, F2FS_DIRTY_NODES))
 		return 0;
@@ -127,7 +126,7 @@ int f2fs_sync_fs(struct super_block *sb, int sync)
 	if (sync)
 		write_checkpoint(sbi, false, false);
 
-	return ret;
+	return 0;
 }
 
 static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf)
Signature · 1 line
1.7.9.5