Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Yue Haibing <yuehaibing@huawei.com>
Link: https://patch.msgid.link/20260408032051.3096449-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yue Haibing and committed by
Jakub Kicinski
3c6132cc a17d3c3d

+1 -1
+1 -1
net/ipv6/sit.c
··· 309 309 struct ip_tunnel_prl kprl, *kp; 310 310 struct ip_tunnel_prl_entry *prl; 311 311 unsigned int cmax, c = 0, ca, len; 312 - int ret = 0; 312 + int ret; 313 313 314 314 if (dev == dev_to_sit_net(dev)->fb_tunnel_dev) 315 315 return -EINVAL;