Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4303275pxb; Mon, 25 Oct 2021 01:23:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+XKu9Uf14plCp9YzyvCLCtb6yGewh3GBX4auwsE9rOtTpSjjCIbFp138FjrbYoV1G+Pf8 X-Received: by 2002:a17:90b:4b03:: with SMTP id lx3mr159707pjb.51.1635150195291; Mon, 25 Oct 2021 01:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635150195; cv=none; d=google.com; s=arc-20160816; b=KKgxnglYU0IYS/9mmq4/+DuPJJ77TO1tghSSIZYg/cMHpGNaNA9GdD4TVXOj+irHMK QYLDE6F9vn6+CUXhU/qTRVavsUgbrc2gdnu1NoJmAccmWk2RbyOJArgZ+HWGQVTcC0M5 gQDVE/ydjF6aYNlLM/A3OR5guuLCyllGLCdNw5UJEzgbfN1G70vNdDfI647LLMibkHMU ju9X/9WQDm3LlMBeTgG5EdGOxKkx8mSwpu3IuiX17ugYsFEPi0qXWQdNB8Z1qy3dPY/v 57mCi8mL1K4X0d0b8JGs8HUc1AfoZ2yTTFIjmJWo3O03yoLz61t+git2hDsqG1nYy+0R th6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=guJtU8gYERfrbOShS4zu/utzf/iiLfsX8zdk5Jzphso=; b=09hOs1lMEhUoEbwJkJetAYEJYWj5ziCy2hS0YYH8PUqAACW8MRkBMSQFgTu0VIdEl0 zgSTNqV6iSXDmkpCIfbFC+7Dkaam4Vx0x/FHG6TrzgQIr+Xy/zVO7bVqe4qGP+DMd3w0 NgVVKremASZ0HZfjl2s0WXk5nbDF517oQAjnJw3psRJ/PBHTCMmOGR0RRdqOATBENRwR s7U3uCyKiNUcBNjE0H0Cz4FKt/xsBAoYEs3EFiNyYuF0uuhEvksZ8cFPP3IDr3QdcBYA 0DLnfd0himZ/Hmz5Fh+EuIVRupLMNhS38hSRg3rDbclZkT0T50WutSQOf26xU1Fu13ti nQWg== 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 3si18231770pgl.23.2021.10.25.01.23.02; Mon, 25 Oct 2021 01:23:15 -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 S230139AbhJYIXO (ORCPT + 99 others); Mon, 25 Oct 2021 04:23:14 -0400 Received: from a.mx.secunet.com ([62.96.220.36]:36288 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbhJYIXM (ORCPT ); Mon, 25 Oct 2021 04:23:12 -0400 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 1851420265; Mon, 25 Oct 2021 10:20:47 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZAXeZe6iBZIe; Mon, 25 Oct 2021 10:20:46 +0200 (CEST) Received: from mailout1.secunet.com (mailout1.secunet.com [62.96.220.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 7A0862019D; Mon, 25 Oct 2021 10:20:46 +0200 (CEST) Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout1.secunet.com (Postfix) with ESMTP id 6B99880004A; Mon, 25 Oct 2021 10:20:46 +0200 (CEST) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 25 Oct 2021 10:20:46 +0200 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 25 Oct 2021 10:20:46 +0200 Received: by gauss2.secunet.de (Postfix, from userid 1000) id AA2603182FA7; Mon, 25 Oct 2021 10:20:45 +0200 (CEST) Date: Mon, 25 Oct 2021 10:20:45 +0200 From: Steffen Klassert To: luo penghao CC: SimonHorman , "David S . Miller" , Jakub Kicinski , , , Herbert Xu , "luo penghao" , Zeal Robot Subject: Re: [PATCH linux-next] xfrm: Remove redundant fields and related parentheses Message-ID: <20211025082045.GC36125@gauss3.secunet.de> References: <20211022095911.1066475-1-luo.penghao@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20211022095911.1066475-1-luo.penghao@zte.com.cn> X-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 22, 2021 at 09:59:11AM +0000, luo penghao wrote: > The variable err is not necessary in such places. It should be revmoved > for the simplicity of the code. This will cause the double parentheses > to be redundant, and the inner parentheses should be deleted. > > The clang_analyzer complains as follows: > > net/xfrm/xfrm_input.c:533: warning: > net/xfrm/xfrm_input.c:563: warning: > > Although the value stored to 'err' is used in the enclosing expression, > the value is never actually read from 'err'. > > Reported-by: Zeal Robot > Signed-off-by: luo penghao Is this an update to your previous patch? If so, please mark it as such with a 'v2' and describe what changed. Thanks!