Commit 6b8a024d authored by Menglong Dong's avatar Menglong Dong Committed by David S. Miller

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: default avatarMenglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f547e956
...@@ -2690,11 +2690,11 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -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_dev *vxlan = netdev_priv(dev);
struct vxlan_rdst *rdst, *fdst = NULL; struct vxlan_rdst *rdst, *fdst = NULL;
const struct ip_tunnel_info *info; const struct ip_tunnel_info *info;
bool did_rsc = false;
struct vxlan_fdb *f; struct vxlan_fdb *f;
struct ethhdr *eth; struct ethhdr *eth;
__be32 vni = 0; __be32 vni = 0;
u32 nhid = 0; u32 nhid = 0;
bool did_rsc;
info = skb_tunnel_info(skb); info = skb_tunnel_info(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment