The following commit has been merged in the next branch:
commit ac7816995707ee7446a828c7245baba69113d56d
Author: Sven Eckelmann <sven.eckelmann(a)gmx.de>
Date: Mon Oct 25 13:00:14 2010 +0000
batman-adv: Remove useless braces
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(a)gmx.de>
diff --git a/vis.c b/vis.c
index ebd85b3..bb073c1 100644
--- a/vis.c
+++ b/vis.c
@@ -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;
--
batman-adv