f2fs: Remove the redundancy initialization
authorZhang Qilong <zhangqilong3@huawei.com>
Fri, 20 Nov 2020 13:33:34 +0000 (21:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:21 +0000 (22:00 -0800)
There are two assignments are meaningless, and remove them.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c
fs/f2fs/checkpoint.c

index 3064135..1e5e9b1 100644 (file)
@@ -384,7 +384,7 @@ int f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage,
                                                        struct page *dpage)
 {
        struct posix_acl *default_acl = NULL, *acl = NULL;
-       int error = 0;
+       int error;
 
        error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage);
        if (error)
index 023462e..9b0628e 100644 (file)
@@ -37,7 +37,7 @@ void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi, bool end_io)
 struct page *f2fs_grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
 {
        struct address_space *mapping = META_MAPPING(sbi);
-       struct page *page = NULL;
+       struct page *page;
 repeat:
        page = f2fs_grab_cache_page(mapping, index, false);
        if (!page) {