projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d25b36
)
UBI: Fastmap: Simplify expression
author
Richard Weinberger
<richard@nod.at>
Fri, 3 Jul 2015 08:36:14 +0000
(10:36 +0200)
committer
Richard Weinberger
<richard@nod.at>
Sat, 3 Oct 2015 18:08:46 +0000
(20:08 +0200)
There is no need to compute pnum again.
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/ubi/fastmap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/ubi/fastmap.c
b/drivers/mtd/ubi/fastmap.c
index 4aa2fd8633e769b0ae6b09ecf3e267031a00c1f3..0e6bfaf850f3d5cb11a621aa7a96b1b5440699f5 100644
(file)
--- 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;