diff options
author | Sheng Yong <shengyong1@huawei.com> | 2016-08-23 20:10:47 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-08-29 18:31:13 -0700 |
commit | 69494229ba5ada1b5521e3111328e8fe585c78d7 (patch) | |
tree | aadc00d0d180f550c19cbcd954548bf2663ee6f3 /fs/f2fs/file.c | |
parent | 5f8eaf1f9b99df1f51988205e27634a22f497eb7 (diff) | |
download | op-kernel-dev-69494229ba5ada1b5521e3111328e8fe585c78d7.zip op-kernel-dev-69494229ba5ada1b5521e3111328e8fe585c78d7.tar.gz |
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 <shengyong1@huawei.com>
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 47abb96..7c6ee7e 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; |