projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd3b16
)
f2fs: simplify code in f2fs_prepare_decomp_mem
author
Zhang Qilong
<zhangqilong3@huawei.com>
Tue, 23 Aug 2022 11:20:22 +0000
(19:20 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 13 Sep 2022 06:08:25 +0000
(23:08 -0700)
It could return directly after init_decompress_ctx.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/compress.c
b/fs/f2fs/compress.c
index 70e97075e535e53b7710ffe3a3c27116e2fc82c7..730256732a9e9de27dbf62f9840c72c898e117c4 100644
(file)
--- a/
fs/f2fs/compress.c
+++ b/
fs/f2fs/compress.c
@@
-1568,12
+1568,8
@@
static int f2fs_prepare_decomp_mem(struct decompress_io_ctx *dic,
if (!dic->cbuf)
return -ENOMEM;
- if (cops->init_decompress_ctx) {
- int ret = cops->init_decompress_ctx(dic);
-
- if (ret)
- return ret;
- }
+ if (cops->init_decompress_ctx)
+ return cops->init_decompress_ctx(dic);
return 0;
}