aboutsummaryrefslogtreecommitdiffstats
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:05:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:51 +0000
commit15a2ebbc38bc7e7a5fd3920962aab2de58ca8461 (patch)
tree904d137c167254a6a02a8245d71283c8ec8d2b20 /target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
parent58d70ff9b3d15880df72e4cb122ba786b9a9cd64 (diff)
downloadupstream-15a2ebbc38bc7e7a5fd3920962aab2de58ca8461.tar.gz
upstream-15a2ebbc38bc7e7a5fd3920962aab2de58ca8461.tar.bz2
upstream-15a2ebbc38bc7e7a5fd3920962aab2de58ca8461.zip
atheros: various braces fixes
Fix braces location, remove unnecessary empty lines before or after code block, remove useless braces. All cases are detected by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41087
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.patch5
1 files changed, 2 insertions, 3 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 4191b0d426..3925b677c3 100644
--- a/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
+++ b/target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch
@@ -43,12 +43,11 @@
parts[i].size = fl->img->size;
parts[i].offset = fl->img->flash_base;
parts[i].name = names;
-@@ -284,6 +289,14 @@ static int parse_redboot_partitions(stru
+@@ -284,6 +289,13 @@ static int parse_redboot_partitions(stru
fl = fl->next;
kfree(tmp_fl);
}
-+ if(master->size - max_offset >= master->erasesize)
-+ {
++ if (master->size - max_offset >= master->erasesize) {
+ parts[nrparts].size = master->size - max_offset;
+ parts[nrparts].offset = max_offset;
+ parts[nrparts].name = names;