From 15a2ebbc38bc7e7a5fd3920962aab2de58ca8461 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 10 Jun 2014 09:05:51 +0000 Subject: 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 SVN-Revision: 41087 --- target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'target/linux/atheros/patches-3.10/140-redboot_boardconfig.patch') 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 4191b0d..3925b67 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; -- cgit v1.1