Commit 876f9a34 authored by Richard Weinberger's avatar Richard Weinberger

UBI: Fastmap: Simplify expression

There is no need to compute pnum again.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Acked-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment