diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2012-12-21 22:10:27 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2012-12-27 21:27:45 -0500 |
commit | 64c576fe51bc6b19e99340d2d0e1bda89f66db25 (patch) | |
tree | dc8e96c3df9c31d7a6d890fb0b8fff853007ca9c /fs/f2fs | |
parent | fd8bb65f796f041ee6ba400255ca9021bc45a992 (diff) |
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')
-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) | |||
119 | int f2fs_sync_fs(struct super_block *sb, int sync) | 119 | int f2fs_sync_fs(struct super_block *sb, int sync) |
120 | { | 120 | { |
121 | struct f2fs_sb_info *sbi = F2FS_SB(sb); | 121 | struct f2fs_sb_info *sbi = F2FS_SB(sb); |
122 | int ret = 0; | ||
123 | 122 | ||
124 | if (!sbi->s_dirty && !get_pages(sbi, F2FS_DIRTY_NODES)) | 123 | if (!sbi->s_dirty && !get_pages(sbi, F2FS_DIRTY_NODES)) |
125 | return 0; | 124 | return 0; |
@@ -127,7 +126,7 @@ int f2fs_sync_fs(struct super_block *sb, int sync) | |||
127 | if (sync) | 126 | if (sync) |
128 | write_checkpoint(sbi, false, false); | 127 | write_checkpoint(sbi, false, false); |
129 | 128 | ||
130 | return ret; | 129 | return 0; |
131 | } | 130 | } |
132 | 131 | ||
133 | static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf) | 132 | static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf) |