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 | 15a2ebbc38bc7e7a5fd3920962aab2de58ca8461 (patch) | |
tree | 904d137c167254a6a02a8245d71283c8ec8d2b20 /target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch | |
parent | 58d70ff9b3d15880df72e4cb122ba786b9a9cd64 (diff) | |
download | upstream-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/142-redboot_various_erase_size_fix.patch')
-rw-r--r-- | target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch b/target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch index fa00dcd3b4..d901b08ffe 100644 --- a/target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch +++ b/target/linux/atheros/patches-3.10/142-redboot_various_erase_size_fix.patch @@ -63,10 +63,10 @@ fl = fl->next; kfree(tmp_fl); } -- if(master->size - max_offset >= master->erasesize) +- if (master->size - max_offset >= master->erasesize) { + + if (master->size - max_offset >= -+ mtd_get_offset_erasesize(master, max_offset)) - { ++ mtd_get_offset_erasesize(master, max_offset)) { parts[nrparts].size = master->size - max_offset; parts[nrparts].offset = max_offset; + parts[nrparts].name = names; |