From: Namjae Jeon Date: Sat, 22 Dec 2012 03:10:27 +0000 (+0900) Subject: f2fs: remove unneeded variable from f2fs_sync_fs X-Git-Tag: v3.12-rc1~1639^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64c576fe51bc6b19e99340d2d0e1bda89f66db25;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Amit Sahrawat Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index cf0ffb8..08a94c8 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)