summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2026-04-08 11:20:51 +0800
committerJakub Kicinski <kuba@kernel.org>2026-04-09 20:37:40 -0700
commit3c6132ccc58e8adf044166728e783f55dc323ef9 (patch)
tree71c58558049ea6aacebe4be3cabe6c26c2bd63f9 /net/ipv6
parenta17d3c3d0cb2827eaa87c43e748095e21f8cc1ab (diff)
downloadlwn-3c6132ccc58e8adf044166728e783f55dc323ef9.tar.gz
lwn-3c6132ccc58e8adf044166728e783f55dc323ef9.zip
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/sit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index ef2e5111fb3a..201347b4e127 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -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;