diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2012-12-22 12:10:27 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-12-28 11:27:45 +0900 |
commit | 64c576fe51bc6b19e99340d2d0e1bda89f66db25 (patch) | |
tree | dc8e96c3df9c31d7a6d890fb0b8fff853007ca9c /fs/f2fs/super.c | |
parent | fd8bb65f796f041ee6ba400255ca9021bc45a992 (diff) | |
download | blackbird-op-linux-64c576fe51bc6b19e99340d2d0e1bda89f66db25.tar.gz blackbird-op-linux-64c576fe51bc6b19e99340d2d0e1bda89f66db25.zip |
f2fs: remove unneeded variable from f2fs_sync_fs
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>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index cf0ffb800654..08a94c814bdc 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -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) |