From 69494229ba5ada1b5521e3111328e8fe585c78d7 Mon Sep 17 00:00:00 2001 From: Sheng Yong Date: Tue, 23 Aug 2016 20:10:47 +0800 Subject: [PATCH] f2fs: remove unnecessary initialization `flags' is used to save value from userspace, there is no need to initialize it, and FS_FL_USER_VISIBLE is the mask for getflags. Signed-off-by: Sheng Yong Acked-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 47abb96098e4..7c6ee7ec88f2 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1454,7 +1454,7 @@ static int f2fs_ioc_setflags(struct file *filp, unsigned long arg) { struct inode *inode = file_inode(filp); struct f2fs_inode_info *fi = F2FS_I(inode); - unsigned int flags = fi->i_flags & FS_FL_USER_VISIBLE; + unsigned int flags; unsigned int oldflags; int ret; -- 2.34.1