Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3127005rwb; Mon, 15 Aug 2022 18:48:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR5nys4Iw/8Zv883UvwxCQwermFC2KMXBC/SB//LyQACg6bDM7qOahjw4LDILM+3zTa3UW59 X-Received: by 2002:a05:6402:b1b:b0:442:8cee:177d with SMTP id bm27-20020a0564020b1b00b004428cee177dmr16512757edb.318.1660614510789; Mon, 15 Aug 2022 18:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614510; cv=none; d=google.com; s=arc-20160816; b=zGO6NY0WHyQ5Hphr2AZgxBKN4NpxQRyORg/T00LzMnUv27gr8m9A26sy/L6lCpWYXs s+w/m0+nX/rhGyoH1JYvs1N0MMTxDiNYEpZDcCckqXSoaeg8q8PZT2IPS8b9QC+lN9mj cnES5Lh8TNE/wZYOgzlQsp+1UMF09U8B/ZNpOAd0DQyWLwZOkyjpTFuZ1l12vlS4bToa VnM3CrFtNHf+8LDLkZEdDXsXMz18lrQdmTSLVCucEp+1chkjFmvUrt7FI02MyeQS5/j4 fN1kEDIyjuDHIny6mq8vuXxmYNpllueQxurwAax745nXpI8rw+zwJ9gkoUYC38ikM6Eh 80vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=81igWyYn86/TaQmfbgxDV+BA1D2UGLkxoyizWAOSczY=; b=X01leBBRvfNBLqOQxPJVpItX0lNGpMcjTp1U8Bh8m3trB7YtxpPKn+BPO91/5wtH98 333mSVm1PKRrI41pgr4ZpxvuqQ7HySl1viCbCSVgIGe8C5+ASp7l57acs9yMoV7OAnLS byAGgoVViklgdTECjpktmpkQK9O0dX9jxsbLmO4KZL0N5JXyj5/norpd5ObIS1bh8E+T 9p0r9A8H0Tsq7iNcDZEe1Dnd8FPW5/1BrtDkCCsMuaq2ZbCznLYsx3sbvIQtjfGRHQhG J2ERAbdnW7RnPFcCcuBzTy9ipQyLjfaUl0/xKzQoL4EUREs+6WOpaP+XpyB+86X2m6+6 44cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pbCXXetj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq37-20020a1709073f2500b00730b5a8b357si9382336ejc.752.2022.08.15.18.48.04; Mon, 15 Aug 2022 18:48:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pbCXXetj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348119AbiHPBIB (ORCPT + 99 others); Mon, 15 Aug 2022 21:08:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348907AbiHPBCY (ORCPT ); Mon, 15 Aug 2022 21:02:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB6E4B9F86; Mon, 15 Aug 2022 13:50:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E8AE5B811AC; Mon, 15 Aug 2022 20:50:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 412EFC433C1; Mon, 15 Aug 2022 20:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596635; bh=RZ1/XKi6ZZB/5Yh58YWyGEnCsTUCnClIq0g2pJhdLjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pbCXXetj665IUObSpC9/m5FxICqzUSIVf3ickhZboXVTeBvr/4mqb1n4C6gT3k/kJ R/7doKoElLZ6ap1tjC8E0nr3iMkA3TsC1tEsiyzl66eIyAlVpP09pHsEsJ5jmzdwt8 VXgs1iOO9ml7dA7xqE7gYpRQUWs9CEvgHf2kGDJw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Eric Dumazet , Jonathan Lemon , Jakub Kicinski Subject: [PATCH 5.19 1142/1157] raw: remove unused variables from raw6_icmp_error() Date: Mon, 15 Aug 2022 20:08:18 +0200 Message-Id: <20220815180526.163822703@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 @@ -332,7 +332,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_nulls_head *hlist; struct hlist_nulls_node *hnode; @@ -345,8 +344,6 @@ void raw6_icmp_error(struct sk_buff *skb hlist_nulls_for_each_entry(sk, hnode, hlist, sk_nulls_node) { /* 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_iif(skb)))