batman-adv: Remove useless braces
Commit Message
54466268785c9892d6e2af2ac2a54a684face022 added changes to vis.c which
trigger a checkpatch.pl warning about braces which are not necessary
anymore.
WARNING: braces {} are not necessary for any arm of this statement
+ if (entry->primary)
[...]
+ else {
[...]
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
batman-adv/vis.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Comments
On Sunday 24 October 2010 00:42:22 Sven Eckelmann wrote:
> 54466268785c9892d6e2af2ac2a54a684face022 added changes to vis.c which
> trigger a checkpatch.pl warning about braces which are not necessary
> anymore.
Applied in revision 1850.
Thanks,
Marek
@@ -136,9 +136,8 @@ static ssize_t vis_data_read_prim_sec(char *buff, struct hlist_head *if_list)
hlist_for_each_entry(entry, pos, if_list, list) {
if (entry->primary)
len += sprintf(buff + len, "PRIMARY, ");
- else {
+ else
len += sprintf(buff + len, "SEC %pM, ", entry->addr);
- }
}
return len;