summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:06:22 +0000
commite49636472d539f14a455f541115faddc39b4fde4 (patch)
tree55eaeb1acc5bd0f5a12960cc5e301aad4e4caf22 /target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
parenta6cf23b76c5c16bb81471540d95509a6df3e9d66 (diff)
downloadmtk-20170518-e49636472d539f14a455f541115faddc39b4fde4.zip
mtk-20170518-e49636472d539f14a455f541115faddc39b4fde4.tar.gz
mtk-20170518-e49636472d539f14a455f541115faddc39b4fde4.tar.bz2
atheros: shorten lines
Wrap lines over 80 chars or make them shorter by other ways. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41095
Diffstat (limited to 'target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch')
-rw-r--r--target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch b/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
index 678d7ec..98dbf52 100644
--- a/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
+++ b/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
@@ -17,12 +17,13 @@
int nrparts = 0;
struct fis_image_desc *buf;
struct mtd_partition *parts;
-@@ -225,14 +228,14 @@ static int parse_redboot_partitions(stru
+@@ -225,14 +228,15 @@ static int parse_redboot_partitions(stru
}
}
#endif
- parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL);
-+ parts = kzalloc(sizeof(*parts) * (nrparts + 1) + nulllen + namelen + sizeof(BOARD_CONFIG_PART), GFP_KERNEL);
++ parts = kzalloc(sizeof(*parts) * (nrparts + 1) + nulllen + namelen +
++ sizeof(BOARD_CONFIG_PART), GFP_KERNEL);
if (!parts) {
ret = -ENOMEM;
@@ -34,7 +35,7 @@
#ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED
if (nulllen > 0) {
strcpy(nullname, nullstring);
-@@ -251,6 +254,8 @@ static int parse_redboot_partitions(stru
+@@ -251,6 +255,8 @@ static int parse_redboot_partitions(stru
}
#endif
for ( ; i<nrparts; i++) {
@@ -43,7 +44,7 @@
parts[i].size = fl->img->size;
parts[i].offset = fl->img->flash_base;
parts[i].name = names;
-@@ -284,6 +289,13 @@ static int parse_redboot_partitions(stru
+@@ -284,6 +290,13 @@ static int parse_redboot_partitions(stru
fl = fl->next;
kfree(tmp_fl);
}