Commit 3c6132cc authored by Yue Haibing's avatar Yue Haibing Committed by Jakub Kicinski
Browse files

ipv6: sit: remove redundant ret = 0 assignment



The variable ret is assigned a value at all places where it is used;
There is no need to assign a value when it is initially defined.

Signed-off-by: default avatarYue Haibing <yuehaibing@huawei.com>
Link: https://patch.msgid.link/20260408032051.3096449-1-yuehaibing@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a17d3c3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ static int ipip6_tunnel_get_prl(struct net_device *dev, struct ip_tunnel_prl __u
	struct ip_tunnel_prl kprl, *kp;
	struct ip_tunnel_prl_entry *prl;
	unsigned int cmax, c = 0, ca, len;
	int ret = 0;
	int ret;

	if (dev == dev_to_sit_net(dev)->fb_tunnel_dev)
		return -EINVAL;