aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhang Qilong2020-11-20 07:33:34 -0600
committerJaegeuk Kim2020-12-21 15:33:13 -0600
commitc60814e9fb8b99da3e31222966ea0a0934c79500 (patch)
tree2e3818f19ae786e7bbdeda4d85a004e989bc711d
parent38e3c31c90668ad0aca9aa7c7a19db1216c917e0 (diff)
downloadkernel-c60814e9fb8b99da3e31222966ea0a0934c79500.tar.gz
kernel-c60814e9fb8b99da3e31222966ea0a0934c79500.tar.xz
kernel-c60814e9fb8b99da3e31222966ea0a0934c79500.zip
f2fs: Remove the redundancy initialization
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>
-rw-r--r--fs/f2fs/acl.c2
-rw-r--r--fs/f2fs/checkpoint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c
index 306413589827..1e5e9b1136ee 100644
--- a/fs/f2fs/acl.c
+++ b/fs/f2fs/acl.c
@@ -384,7 +384,7 @@ int f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage,
384 struct page *dpage) 384 struct page *dpage)
385{ 385{
386 struct posix_acl *default_acl = NULL, *acl = NULL; 386 struct posix_acl *default_acl = NULL, *acl = NULL;
387 int error = 0; 387 int error;
388 388
389 error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage); 389 error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage);
390 if (error) 390 if (error)
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 023462e80e58..9b0628e0d8bc 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -37,7 +37,7 @@ void f2fs_stop_checkpoint(struct f2fs_sb_info *sbi, bool end_io)
37struct page *f2fs_grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index) 37struct page *f2fs_grab_meta_page(struct f2fs_sb_info *sbi, pgoff_t index)
38{ 38{
39 struct address_space *mapping = META_MAPPING(sbi); 39 struct address_space *mapping = META_MAPPING(sbi);
40 struct page *page = NULL; 40 struct page *page;
41repeat: 41repeat:
42 page = f2fs_grab_cache_page(mapping, index, false); 42 page = f2fs_grab_cache_page(mapping, index, false);
43 if (!page) { 43 if (!page) {