mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 10:40:53 +07:00
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>
This commit is contained in:
parent
fd8bb65f79
commit
64c576fe51
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user