提交 876f9a34 编写于 作者: R Richard Weinberger

UBI: Fastmap: Simplify expression

There is no need to compute pnum again.
Signed-off-by: NRichard Weinberger <richard@nod.at>
Acked-by: NBrian Norris <computersforpeace@gmail.com>
上级 7d25b361
......@@ -775,7 +775,7 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) {
int pnum = be32_to_cpu(fm_eba->pnum[j]);
if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0)
if (pnum < 0)
continue;
aeb = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册