]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: remove unnecessary initialization
authorSheng Yong <shengyong1@huawei.com>
Tue, 23 Aug 2016 12:10:47 +0000 (20:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Aug 2016 01:31:13 +0000 (18:31 -0700)
`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>
fs/f2fs/file.c

index 47abb96098e49d71fcb082b39752be4f89882199..7c6ee7ec88f2d058a044b785b7cfa409f0f9ec8f 100644 (file)
@@ -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;