batman-adv: remove obsolete variable primary_iface from orig_node

Message ID 1405506190-9733-1-git-send-email-sw@simonwunderlich.de (mailing list archive)
State Accepted, archived
Commit be0f6de26a0b96ac56db0bcc81cf5a1adc660cd6
Headers

Commit Message

Simon Wunderlich July 16, 2014, 10:23 a.m. UTC
  This variable became obsolete when changing to the new bonding mechanism
based on the multi interface optimization. Since its not used anywhere,
remove it.

Reported-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
 types.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Marek Lindner Aug. 11, 2014, 5 a.m. UTC | #1
On Wednesday 16 July 2014 12:23:10 Simon Wunderlich wrote:
> This variable became obsolete when changing to the new bonding mechanism
> based on the multi interface optimization. Since its not used anywhere,
> remove it.
> 
> Reported-by: Linus Lüssing <linus.luessing@web.de>
> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
> ---
>  types.h | 2 --
>  1 file changed, 2 deletions(-)

Applied in revision be0f6de.

Thanks,
Marek
  

Patch

diff --git a/types.h b/types.h
index 8854c05..462a70c 100644
--- a/types.h
+++ b/types.h
@@ -199,7 +199,6 @@  struct batadv_orig_bat_iv {
 /**
  * struct batadv_orig_node - structure for orig_list maintaining nodes of mesh
  * @orig: originator ethernet address
- * @primary_addr: hosts primary interface address
  * @ifinfo_list: list for routers per outgoing interface
  * @last_bonding_candidate: pointer to last ifinfo of last used router
  * @batadv_dat_addr_t:  address of the orig node in the distributed hash
@@ -244,7 +243,6 @@  struct batadv_orig_bat_iv {
  */
 struct batadv_orig_node {
 	uint8_t orig[ETH_ALEN];
-	uint8_t primary_addr[ETH_ALEN];
 	struct hlist_head ifinfo_list;
 	struct batadv_orig_ifinfo *last_bonding_candidate;
 #ifdef CONFIG_BATMAN_ADV_DAT