Skip to contentSkip to conversation

batman-adv: remove useless assignment

PATCH Applied Antonio Quartulli 2 participants 2 messages Jan 30, 2014 – Feb 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: remove useless assignment

Introduced by 41b38727749a94c1a65cf0f4be9bfe1cbaf0adeb
("batman-adv: fix potential kernel paging error for unicast transmissions")

---
 send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
send.c +1 -1
index 2035bd9..75be770 100644
@@ -256,7 +256,7 @@ static int batadv_send_skb_unicast(struct batadv_priv *bat_priv,
 				   struct batadv_orig_node *orig_node,
 				   unsigned short vid)
 {
-	struct ethhdr *ethhdr = (struct ethhdr *)skb->data;
+	struct ethhdr *ethhdr;
 	struct batadv_unicast_packet *unicast_packet;
 	int ret = NET_XMIT_DROP;
 
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 8 lines · On Thursday 30 January 2014 13:57:27 Antonio Quartulli wrote:

Introduced by 41b38727749a94c1a65cf0f4be9bfe1cbaf0adeb
("batman-adv: fix potential kernel paging error for unicast
transmissions")

---
 send.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision 9a91d33.

Thanks,
Marek