projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d0a24
)
erofs: remove unnecessary goto
author
Yangtao Li
<frank.li@vivo.com>
Thu, 15 Jun 2023 03:45:38 +0000
(11:45 +0800)
committer
Gao Xiang
<hsiangkao@linux.alibaba.com>
Thu, 22 Jun 2023 13:16:34 +0000
(21:16 +0800)
It's redundant, let's remove it.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Link:
https://lore.kernel.org/r/20230615034539.14286-1-frank.li@vivo.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/super.c
patch
|
blob
|
history
diff --git
a/fs/erofs/super.c
b/fs/erofs/super.c
index c2829c91812ba5cd960ddd5f7eb59df3a283bf54..ff18f6b14de5956484c1088e240ee9c857061502 100644
(file)
--- a/
fs/erofs/super.c
+++ b/
fs/erofs/super.c
@@
-954,10
+954,8
@@
static int __init erofs_module_init(void)
sizeof(struct erofs_inode), 0,
SLAB_RECLAIM_ACCOUNT,
erofs_inode_init_once);
- if (!erofs_inode_cachep) {
- err = -ENOMEM;
- goto icache_err;
- }
+ if (!erofs_inode_cachep)
+ return -ENOMEM;
err = erofs_init_shrinker();
if (err)
@@
-992,7
+990,6
@@
lzma_err:
erofs_exit_shrinker();
shrinker_err:
kmem_cache_destroy(erofs_inode_cachep);
-icache_err:
return err;
}