diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:51 +0000 |
commit | 7b39c7666012a62e7d3a381dc71e5101898dc19a (patch) | |
tree | 47485b07848d2944e53deec262da630d7fa48bd6 /target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch | |
parent | 29a33c9e0a811c77e96450bcbadb4dfb9b8337a9 (diff) | |
download | master-187ad058-7b39c7666012a62e7d3a381dc71e5101898dc19a.tar.gz master-187ad058-7b39c7666012a62e7d3a381dc71e5101898dc19a.tar.bz2 master-187ad058-7b39c7666012a62e7d3a381dc71e5101898dc19a.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41087 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch | 5 |
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; |