From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C3EE3F1AD5; Mon, 17 Aug 2026 14:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786975917; cv=none; b=bdHjNJc0Ba4xqt7G2bCijKUtqihcCYhdQf6aO6ZBgFCRFLKd5NJ4AY6ywT3CKpB6b7s2CRD4/4Cf/BBgnyh7FuccZ3VaeJmeXKte/1PE19ixWAOwM1HrB8qI2Jjol+/KtokswUaJzK0VH4PEk0oo6oiZqGHtTVN63Kp5jX7Ps+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786975917; c=relaxed/simple; bh=3NcIv+NmMT7qF6wR2SZxkMINct0bVaXIzFPTNahE9x0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Davsf3t/5TAMgSCL6K1y5vkWxQpI7yOnTxD0yOT9Wgp5Q5FjmF7s1/eX0lrv0PzReM5zX0tzkHMZ8gDWyw74VAP0QQTxGzkwL+t/77kUvt3TxAZj9G9i25FbstU373vncFfpYyMGTK8W6DCDGOjzF7Q6pzHffUrTsFOZr/VoKGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MOhiqJ4O; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MOhiqJ4O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E52A71F000E9; Mon, 17 Aug 2026 14:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786975916; bh=Ee1qIDNHh9lV5yQunVU45AExgzEb/pc2kgx9nyXz3Zg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MOhiqJ4Omfr1WK1ZRpexVEkXrbUlNDcX2Caya5Mjn4blvH/Al/x9MJe6xQhyMnkl9 Oa7jDAJs9/KxU3+si9SqJ4MsUKfZFjYIIJIX5lpoqiwQNBENbvzELVrnx2KxnnAKPT XSZ38E+Umfs+4ju1dIgvAi9fN+eBKOQ59QHIZ2mY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Eric Dumazet , Jonathan Lemon , Jakub Kicinski Subject: [PATCH 5.10 191/389] raw: remove unused variables from raw6_icmp_error() Date: Mon, 17 Aug 2026 15:30:30 +0200 Message-ID: <20260817132546.660300958@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260817132538.796021292@linuxfoundation.org> References: <20260817132538.796021292@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet commit c4fceb46add65481ef0dfb79cad24c3c269b4cad upstream. saddr and daddr are set but not used. Fixes: ba44f8182ec2 ("raw: use more conventional iterators") Reported-by: kernel test robot Signed-off-by: Eric Dumazet Acked-by: Jonathan Lemon Link: https://lore.kernel.org/r/20220622032303.159394-1-edumazet@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ipv6/raw.c | 3 --- 1 file changed, 3 deletions(-) --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -335,7 +335,6 @@ static void rawv6_err(struct sock *sk, s void raw6_icmp_error(struct sk_buff *skb, int nexthdr, u8 type, u8 code, int inner_offset, __be32 info) { - const struct in6_addr *saddr, *daddr; struct net *net = dev_net(skb->dev); struct hlist_head *head; struct sock *sk; @@ -347,8 +346,6 @@ void raw6_icmp_error(struct sk_buff *skb sk_for_each(sk, head) { /* Note: ipv6_hdr(skb) != skb->data */ const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; - saddr = &ip6h->saddr; - daddr = &ip6h->daddr; if (!raw_v6_match(net, sk, nexthdr, &ip6h->saddr, &ip6h->daddr, inet6_iif(skb), inet6_sdif(skb)))