projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generic: standardize CONFIG_INLINE_* symbols usage
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
mtd
/
wrt160nl_part.c
diff --git
a/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
b/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
index
da54e0f
..
e42b3d4
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
+++ b/
target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
@@
-123,12
+123,7
@@
static int wrt160nl_parse_partitions(struct mtd_info *master,
goto free_hdr;
}
goto free_hdr;
}
- kernel_len = uheader->ih_size / master->erasesize;
- if (uheader->ih_size % master->erasesize)
- kernel_len++;
-
- kernel_len++;
- kernel_len *= master->erasesize;
+ kernel_len = le32_to_cpu(theader->offsets[1]) + sizeof(struct cybertan_header);
trx_parts[0].name = "u-boot";
trx_parts[0].offset = 0;
trx_parts[0].name = "u-boot";
trx_parts[0].offset = 0;
This page took
0.02071 seconds
and
4
git commands to generate.