Skip to content

Commit

Permalink
f2fs: remove unneeded variable from f2fs_sync_fs
Browse files Browse the repository at this point in the history
We can directly return '0' from the function, instead of introducing a
'ret' variable.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
  • Loading branch information
Namjae Jeon authored and Jaegeuk Kim committed Dec 28, 2012
1 parent fd8bb65 commit 64c576f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,14 @@ 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;

if (sync)
write_checkpoint(sbi, false, false);

return ret;
return 0;
}

static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf)
Expand Down

0 comments on commit 64c576f

Please sign in to comment.