Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 288a0ef623122b4746cc45c7927a846353c2f655 Author: Marek Lindner lindner_marek@yahoo.de Date: Thu May 30 14:37:10 2013 +0800
batman-adv: remove obsolete variable
Introduced by 1ab746a3f2441d3466592b86134fbc72a9fe0558 ("batman-adv: properly align tvlv infrastructure")
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
288a0ef623122b4746cc45c7927a846353c2f655 main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/main.c b/main.c index 1192e61..5d30fe0 100644 --- a/main.c +++ b/main.c @@ -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);