The following commit has been merged in the master branch: commit 817fb088a0bcb9740d10331c85c4eeeb73f2f36c Author: Sven Eckelmann sven.eckelmann@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@gmx.de
diff --git a/vis.c b/vis.c index bde423a..5aea153 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;