Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3087176rwb; Mon, 15 Aug 2022 17:49:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR5vJK4vDopdWwJ1AdrgLPdbzOSzjm5RjraK02f+avCcQ1bfvN7Hxqa/X7XztofjShpF2g62 X-Received: by 2002:a17:907:2cf3:b0:730:8b8c:6d55 with SMTP id hz19-20020a1709072cf300b007308b8c6d55mr11484644ejc.535.1660610942976; Mon, 15 Aug 2022 17:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610942; cv=none; d=google.com; s=arc-20160816; b=v7UeFpjWLFc9sVsUgG9su/f4NyZDSYOgJL0jrjspZ39AdXRRmlZjXV5nGsXe6vcPqC 7Hd7QXeaWcLrYyVTrr9VBu19wPzpbzCtr7MAYWE6wB0UNS9JU1RFmhzU0xTwGfaEW1d9 /a3P1y0qJMUUMfOQwe1sVndvtEQSIbCGe+HTrq5tDdXb0VgQDHenJE7IMP2CaEfxn+wE lpBY31M3lDO8MuD1FHnqRlTd/arLYiOU7d7ocp/uOm9JESzuU8TxtaWfC/lqdZuXdaKE 99Vhlxfyk9EaUWIYab/sWbRxCS3a1KXD1WpSzMJn4K85LQ0UxBBPGAkhOqq+v79ZZWh5 blSA== 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=dBnNqjO4dHhGcBCoBBv3bwtSBzBhmUngSv4JtVpq1ZYti8iqEDrD6/0qeRbHWg/ki9 Ml+5552cn/u2r/j7yZIohJNgrLXuESU4yuQYJkfGQQkj24fWem4WSfGDj1yUfxITsvtb jN/0+7dueV33F5Pl25lm3nOaNWu3gA+bASW5nVvBa2H1pQLluo5J4ClBKDVk/hWuf5wM tN3nxbuYGrIPCrQ3Prc9y15O8lq0gtmJn8Fh3slRI5fychJmzDu6btuK/9kX+0D1pgNk Zv1vrJooOP0VAuCdDvCpFwuv2p+dbEWQK5N6kN6P+NEZyjCJoaE+x0xzF+NRbhyly9N7 FzbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KeFuE6cy; 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 wz14-20020a170906fe4e00b007385dfb42c7si3083886ejb.565.2022.08.15.17.48.37; Mon, 15 Aug 2022 17:49:02 -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=KeFuE6cy; 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 S1353941AbiHOXoU (ORCPT + 99 others); Mon, 15 Aug 2022 19:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354171AbiHOXle (ORCPT ); Mon, 15 Aug 2022 19:41:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2A1BC9; Mon, 15 Aug 2022 13:10:56 -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 08283B80EA9; Mon, 15 Aug 2022 20:10:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DC45C433C1; Mon, 15 Aug 2022 20:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594253; bh=RZ1/XKi6ZZB/5Yh58YWyGEnCsTUCnClIq0g2pJhdLjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KeFuE6cyAuR343bBVOsTpoR83IXVLUUshFvzyFyeeD/nLOl1MsxvLf3mEUUtE3RAD OhlWpWBA3mj/PMLP2L8eslkhUnmubTZSIi2sJlvi46LWzrCmw/PJE/AhGel6iYtOlJ QMWbuuBeK4NAtlxHUW9UfI9MX/WbWUO36TTzTs7Y= 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.18 1079/1095] raw: remove unused variables from raw6_icmp_error() Date: Mon, 15 Aug 2022 20:07:58 +0200 Message-Id: <20220815180513.671224904@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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)))