Skip to contentSkip to conversation

batman-adv: remove obsolete variable

PATCH Applied Marek Lindner 1 participant 2 messages May 30, 2013 – Jun 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: remove obsolete variable

Introduced by 1ab746a3f2441d3466592b86134fbc72a9fe0558 ("batman-adv: properly align tvlv infrastructure")

---
 main.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
main.c +1 -4
index 1192e61..5d30fe0 100644
@@ -1043,7 +1043,7 @@ void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, uint8_t *src,
 	struct batadv_orig_node *orig_node;
 	struct sk_buff *skb = NULL;
 	unsigned char *tvlv_buff;
-	unsigned int tvlv_len, tvlv_long_hdr = 0;
+	unsigned int tvlv_len;
 	ssize_t hdr_len = sizeof(*unicast_tvlv_packet);
 	bool ret = false;
 
@@ -1051,9 +1051,6 @@ void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, uint8_t *src,
 	if (!orig_node)
 		goto out;
 
-	if (tvlv_value_len > 255)
-		tvlv_long_hdr = 1;
-
 	tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len;
 
 	skb = netdev_alloc_skb_ip_align(NULL, ETH_HLEN + hdr_len + tvlv_len);
Signature · 1 line
1.7.10.4
author Applied
#1 lore raw
Quoted 7 lines · On Thursday, May 30, 2013 14:37:10 Marek Lindner wrote:

Introduced by 1ab746a3f2441d3466592b86134fbc72a9fe0558 ("batman-adv: properly align tvlv infrastructure")

---
 main.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Applied in revision 288a0ef.

Regards,
Marek