diff options
| author | Sheng Yong <shengyong1@huawei.com> | 2016-08-23 20:10:47 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:00 +0200 |
| commit | b73a84db54fcb8b53c87283f05ee63e5d6accef6 (patch) | |
| tree | 1576c552cd9815c1987a92c8ec5fd00d41522834 | |
| parent | 7fa5a067154019fe5b2d985aa8b001df1c467e74 (diff) | |
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>
| -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 74d052376..dfb56f796 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1483,7 +1483,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; |
