Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4062678iog; Tue, 28 Jun 2022 08:15:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+L5PqxKzDpXcagfkhC3W33amHXahJ5sB7qs1dtHaGAa0jWozfTGIuxB+7cBCrmCbSbcMh X-Received: by 2002:a17:902:e5c6:b0:16a:8395:aa30 with SMTP id u6-20020a170902e5c600b0016a8395aa30mr5489363plf.123.1656429338092; Tue, 28 Jun 2022 08:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656429338; cv=none; d=google.com; s=arc-20160816; b=bhFVOyUd7aj0UerrGtzLwhZgqUaMau/FTDrgt2pXqHC57V8Ve3B7cljWKnkW02gR1l 0gzRkiPxhLXZOvqcOaD+fSmPI8/cuV/y5RWBEyeJdqNysX3QgrjejWX3FpVg4GlE46rC 8Rl01Z83QUOj3tY6tu/4DsQMTHfieTdcREio6RDa3FK1M3v7M45xwezNuMsrpLUX1yKn nzB/bCvwGEEdoOlVx1qbKQO+uinBYFmgYr15ECaSoM2MLSzDFu2/5w/9mD3trgs75gEf 0spyUxj4aGr0hHHdoF/NIzF5smQ6L/y2nbBKVE4pouUmn8Xy4nnZFcNGXAp1LNUyLOw/ k2jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=WsBTyTlixton5rOyp5UKBplY/su6kuGta3Lb9/QeCzE=; b=p1jUI8Bj6WbqdtFWRSCdg0e9MBI8XzuP7BLSsXve/7LKr4ef67WyTwJplXQnmPDikO PKQo9EotWXsCs02i0IhLq7TXonnFt9mchiNw7fcEVGF08HbKfgVTEt80+KNyOmmP3TFJ i0n8qtoil/owNhaYYMJKG/eUj3K6GqZ+GkczUt78G56mN4mR5QxDhtYhHPDBC+699qoP 0Fg1GFSQDe3FkWGHQUiGwrz6G8G76MNv8Eaaz+gfwDqab7pqGwO961tpA7pMXrQ4CDfD boFtjCgKdjH2V5cuoWGVvvYbl5U/eBfr28Lm4VQx14z2oiFMhxpCt8c6VafQRtO3lw+5 CoUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UDGL8Qie; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b0015d2ca1afcfsi22122965plg.89.2022.06.28.08.15.19; Tue, 28 Jun 2022 08:15:38 -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=@kernel.org header.s=k20201202 header.b=UDGL8Qie; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347753AbiF1PEu (ORCPT + 99 others); Tue, 28 Jun 2022 11:04:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347720AbiF1PEt (ORCPT ); Tue, 28 Jun 2022 11:04:49 -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 29EB91D301; Tue, 28 Jun 2022 08:04:49 -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 D2CC2B81E39; Tue, 28 Jun 2022 15:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F5CFC3411D; Tue, 28 Jun 2022 15:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656428686; bh=ENgejiw+sgjk1N/1PkHBRhDYnDtcy5LgtLT6/pcL9XY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UDGL8Qieu0VRAUh2s/g6/HiBTtvuzwhPkwtmcs4kHRCf1smoNrrqiZtbsGG4AFrxX neBuBEhnWXf9WhUNNSlOX2F6+YVBoLYclb8tO/s/E39ava4dXeRqSzjq7BYk7JrM+F bn4t/cEtK+djEniP4h6ZJlcmP0JvXUadmBvTlZYSDBBYysDQXbWyBrTJDnCiqdQ16n 8MhfcECywObJV14zwWVWutmWlI0lkpWnrGdDyWW1B3NPKE2oeNqDyg3K6S1JvYSmnY TYBHiOXBbFezIO0IH4110YIbwgLXCsbl8baEeGkvwVnFVp1KSukdPfawmEEBTktKzL UBszwnFWdOPPQ== Message-ID: <002f8deb-f664-cc1b-53e6-b4297c8c6b49@kernel.org> Date: Tue, 28 Jun 2022 09:04:42 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] ipv6: remove redundant store to value after addition Content-Language: en-US To: Colin Ian King , "David S . Miller" , Hideaki YOSHIFUJI , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220628145406.183527-1-colin.i.king@gmail.com> From: David Ahern In-Reply-To: <20220628145406.183527-1-colin.i.king@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 6/28/22 8:54 AM, Colin Ian King wrote: > There is no need to store the result of the addition back to variable count > after the addition. The store is redundant, replace += with just + > > Cleans up clang scan build warning: > warning: Although the value stored to 'count' is used in the enclosing > expression, the value is never actually read from 'count' > > Signed-off-by: Colin Ian King > --- > net/ipv6/route.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: David Ahern