Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp809113pxj; Thu, 27 May 2021 12:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtu+t6/iNYAz7pnEgFX7LS6HXJAApGGPLj1bsoAdVe6iciUvkLHuee+GHyN0L4aU8NjJGb X-Received: by 2002:aa7:ce0b:: with SMTP id d11mr5989212edv.283.1622142482486; Thu, 27 May 2021 12:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622142482; cv=none; d=google.com; s=arc-20160816; b=J62P63mOvrEXJ9EScBy4RVTXaXEdf9meDUdm128rtxgqbaSXWQGT4Jfrqw0+UYbSi6 v0A7k2tQGhMlgO4hGvDog5Jyip+3Y/hAC5oeOswfmW7mFnC3HFe95Up2JtJid57LCL4v /xzGrvsf0YLKw7tgDEff+MyAc11vzr1cVfuNiIReTQfHUbc4DRoeNoPiJJB1AqCRwiKN VTw5MLI0QU9YoGIJjLuHPYyWeYhxMvyDg1JbMSeEFw30ne9I3EUnLE+02NMNl6H8HpHk 20wpslI1frsLHjbkAx1bVUTNC9VQbrWuOzzzC7ZsJ7DnBfiQuqowFBtmZrYacgy0iKis m2jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jSFQLdfYbhjZt30Ccbg6nQINgPgXRYrbPjCsOZop9oI=; b=zLGqtsnlh8l6QqZAuK5uGGtp3/m7ZcRe79c9AluKM82qLZYbMStLyDUHhUQESdpt/Y REnAKtg31K/rumQsnNGNdaQ1hDED7ZKEBHkWqO9XTVRq9aMQbDttjaoJjtUiPBr59U9A ktb7R2Y4L5RvfNCM2ab7p3fDvCJ0ho5pIUfp1sP+YlSzqthShVIudDgU4c3C+7nD97vZ mWxPuA7yhf56F3bNwez0zMo8swereot3xAm1UPCdK1wNXxxWBPlLEPUjYkL3KwM1edKj DVrZEsowwyEmi/SQgh/7EoNC25ZZL/1/Ya4odLvVPn3LphsOgq28U/1SNZLmTri1nUwT yroA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt26si3072374ejb.41.2021.05.27.12.07.38; Thu, 27 May 2021 12:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235539AbhE0SNq (ORCPT + 99 others); Thu, 27 May 2021 14:13:46 -0400 Received: from mail.netfilter.org ([217.70.188.207]:38140 "EHLO mail.netfilter.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbhE0SNp (ORCPT ); Thu, 27 May 2021 14:13:45 -0400 Received: from netfilter.org (unknown [90.77.255.23]) by mail.netfilter.org (Postfix) with ESMTPSA id 2C00864502; Thu, 27 May 2021 20:11:09 +0200 (CEST) Date: Thu, 27 May 2021 20:12:08 +0200 From: Pablo Neira Ayuso To: Yang Li Cc: kadlec@netfilter.org, fw@strlen.de, davem@davemloft.net, kuba@kernel.org, nathan@kernel.org, ndesaulniers@google.com, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] netfilter: Remove redundant assignment to ret Message-ID: <20210527181208.GA8886@salvia> References: <1619774710-119962-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1619774710-119962-1-git-send-email-yang.lee@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 05:25:10PM +0800, Yang Li wrote: > Variable 'ret' is set to zero but this value is never read as it is > overwritten with a new value later on, hence it is a redundant > assignment and can be removed > > Clean up the following clang-analyzer warning: > > net/netfilter/xt_CT.c:175:2: warning: Value stored to 'ret' is never > read [clang-analyzer-deadcode.DeadStores] I overlook this small patch, now applied to nf-next. Thanks.