batman-adv: Fix variable declaration warning in batadv_compare_tt
Sven Eckelmann
maintainerPATCH 1/1 batman-adv: Fix variable declaration warning in batadv_compare_tt
checkpatch is warning about the wrong way a pointer is declared in batadv_compare_tt.
ERROR: "foo* bar" should be "foo *bar"
#80: FILE: ./net/batman-adv/translation-table.c:80:
+ const struct batadv_tt_common_entry* tt1 = data1;Fixes af5fa950cbb6 ("batman-adv: fix erroneous client entry duplicate detection")
Signed-off-by Sven Eckelmann <[email protected]>
--- net/batman-adv/translation-table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/batman-adv/translation-table.c +2 -2
@@ -77,8 +77,8 @@ static int batadv_compare_tt(const struct hlist_node *node, const void *data2) { const void *data1 = container_of(node, struct batadv_tt_common_entry, hash_entry); -const struct batadv_tt_common_entry * tt1 = data1; -const struct batadv_tt_common_entry * tt2 = data2; +const struct batadv_tt_common_entry *tt1 = data1; +const struct batadv_tt_common_entry *tt2 = data2;return (tt1->vid == tt2->vid) &&batadv_compare_eth (data1, data2); }
Signature · 1 line
2.6.2
Quoted 7 lines · On Wednesday, November 18, 2015 09:41:41 Sven Eckelmann wrote:
checkpatch is warning about the wrong way a pointer is declared in
batadv_compare_tt.ERROR: "foo* bar" should be "foo *bar" #80: FILE:
./net/batman-adv/translation-table.c:80:
+ const struct batadv_tt_common_entry* tt1 = data1;
Quoted 5 lines
Fixes af5fa950cbb6 ("batman-adv: fix erroneous client entry duplicatedetection") Signed-off-by: Sven Eckelmann <[email protected]>
--- net/batman-adv/translation-table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Good point! Applied in revision 5019fc0.
Thanks,
Marek