diff options
author | Richard Weinberger <richard@nod.at> | 2015-07-03 11:36:14 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-10-03 21:08:46 +0300 |
commit | 876f9a348779b348f44736254365bb574fea74eb (patch) | |
tree | f2eefbcf2fb59e62df3b12ef946408391c976349 | |
parent | 7d25b361a2d3e8a9dcaf463d92285d58dedc74ab (diff) | |
download | linux-876f9a348779b348f44736254365bb574fea74eb.tar.xz |
UBI: Fastmap: Simplify expression
There is no need to compute pnum again.
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/ubi/fastmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c index 4aa2fd8633e7..0e6bfaf850f3 100644 --- a/drivers/mtd/ubi/fastmap.c +++ b/drivers/mtd/ubi/fastmap.c @@ -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; |