]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: vxlan: remove duplicated initialization in vxlan_xmit
authorMenglong Dong <menglong8.dong@gmail.com>
Sat, 10 Aug 2024 02:06:32 +0000 (10:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2024 12:37:43 +0000 (13:37 +0100)
The variable "did_rsc" is initialized twice, which is unnecessary. Just
remove one of them.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan/vxlan_core.c

index ba59e92ab941de42dee737a7a7c07549ff99597f..8983e75e9881d471fb5011b7d1636f7d6f519875 100644 (file)
@@ -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);