[linux-yocto] [PATCH 1/4] vxlan: remove unused port variable in vxlan_udp_encap_recv()
jianchuan.wang at windriver.com
jianchuan.wang at windriver.com
Tue Aug 26 17:52:10 PDT 2014
From: Pablo Neira Ayuso <pablo at gnumonks.org>
commit 86c3f0f8307ac18f3ad3109e1969c62b8fbed5df upstream
vxlan: remove unused port variable in vxlan_udp_encap_recv()
Signed-off-by: Pablo Neira Ayuso <pablo at gnumonks.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Jianchuan Wang <jianchuan.wang at windriver.com>
---
drivers/net/vxlan.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index d091e52..6bab66a 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1135,7 +1135,6 @@ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
{
struct vxlan_sock *vs;
struct vxlanhdr *vxh;
- __be16 port;
/* Need Vxlan and inner Ethernet header to be present */
if (!pskb_may_pull(skb, VXLAN_HLEN))
@@ -1153,8 +1152,6 @@ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
if (iptunnel_pull_header(skb, VXLAN_HLEN, htons(ETH_P_TEB)))
goto drop;
- port = inet_sk(sk)->inet_sport;
-
vs = rcu_dereference_sk_user_data(sk);
if (!vs)
goto drop;
--
1.9.1
More information about the linux-yocto
mailing list