projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacfa94
)
ubifs: Simplify redundant code
author
Liu Song
<liu.song11@zte.com.cn>
Mon, 6 Aug 2018 02:49:06 +0000
(10:49 +0800)
committer
Richard Weinberger
<richard@nod.at>
Mon, 8 Jul 2019 17:43:38 +0000
(19:43 +0200)
cbuf's size can be simply assigned.
Signed-off-by: Liu Song <liu.song11@zte.com.cn>
Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/super.c
b/fs/ubifs/super.c
index 6cfc494050bef21a675ab9aa2f3e5020379781cf..af683734bbdd8c283effe7fb65c888d7b8b60050 100644
(file)
--- a/
fs/ubifs/super.c
+++ b/
fs/ubifs/super.c
@@
-1296,8
+1296,7
@@
static int mount_ubifs(struct ubifs_info *c)
if (err)
goto out_free;
- sz = ALIGN(c->max_idx_node_sz, c->min_io_size);
- sz = ALIGN(sz + c->max_idx_node_sz, c->min_io_size);
+ sz = ALIGN(c->max_idx_node_sz, c->min_io_size) * 2;
c->cbuf = kmalloc(sz, GFP_NOFS);
if (!c->cbuf) {
err = -ENOMEM;