[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1393346770-25666-1-git-send-email-pablo@netfilter.org>
Date: Tue, 25 Feb 2014 17:46:10 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH] vxlan: remove unused port variable in vxlan_udp_encap_recv()
From: Pablo Neira Ayuso <pablo@...monks.org>
Signed-off-by: Pablo Neira Ayuso <pablo@...monks.org>
---
drivers/net/vxlan.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index dec9820b..eb59b14 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1132,7 +1132,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))
@@ -1150,8 +1149,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.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists