aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMenglong Dong <[email protected]>2024-08-10 10:06:32 +0800
committerDavid S. Miller <[email protected]>2024-08-12 13:37:43 +0100
commit6b8a024d25ebf7535eb4a3e926309aa693cfe1bd (patch)
treecab6023b0447a4c1c0df197c32ce5a45675ada69
parentf547e956dd84a585c6b75d3f52e1a1bb9c36c0e2 (diff)
net: vxlan: remove duplicated initialization in vxlan_xmit
The variable "did_rsc" is initialized twice, which is unnecessary. Just remove one of them. Signed-off-by: Menglong Dong <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
-rw-r--r--drivers/net/vxlan/vxlan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index ba59e92ab941..8983e75e9881 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -2690,11 +2690,11 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
struct vxlan_dev *vxlan = netdev_priv(dev);
struct vxlan_rdst *rdst, *fdst = NULL;
const struct ip_tunnel_info *info;
- bool did_rsc = false;
struct vxlan_fdb *f;
struct ethhdr *eth;
__be32 vni = 0;
u32 nhid = 0;
+ bool did_rsc;
info = skb_tunnel_info(skb);