From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 934F7DDAD for ; Wed, 2 Aug 2023 16:48:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9D8EC433CB; Wed, 2 Aug 2023 16:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690994913; bh=Pdn2EtB/K/X3AmHuk5ox8AefKm9knP0sFeo3NYu+Yb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hIBCvG+wTP06Y0lUk+87/LHyaSYCg9BZabwl8+s2O4iVuO+S7lgKbLbPzPu4COcYL OYzCEsqxqQ0nXz6W0mKtdFW0XER54/HkWS86YZUDQJthVTDP27KOr/OVfOzbGsnxHG f1Sx8mA1A16GnoStSPSxY9SbvJDJuv5EdsUV/HXRmXtJ+8V2hx6bRb9H5JrJ/f0UVQ 9j47BgG1z1CiRZ9x9t6zbmF5moVMSbsdC3DUHrLVhUqjZ+etIxuZwUOQQRoZXdCB/K UbaRES0STA3u6/CyT4XS9colYzQQAtLxO+jKMmOD2UUkSIq2tGob9VFzniZHpUHZPo 00VhP/b/gKR4g== Date: Wed, 2 Aug 2023 18:48:28 +0200 From: Simon Horman To: Li Zetao Cc: lars.povlsen@microchip.com, Steen.Hegelund@microchip.com, daniel.machon@microchip.com, UNGLinuxDriver@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] net: microchip: vcap api: Use ERR_CAST() in vcap_decode_rule() Message-ID: References: <20230802093156.975743-1-lizetao1@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802093156.975743-1-lizetao1@huawei.com> On Wed, Aug 02, 2023 at 05:31:56PM +0800, Li Zetao wrote: > There is a warning reported by coccinelle: > > ./drivers/net/ethernet/microchip/vcap/vcap_api.c:2399:9-16: WARNING: > ERR_CAST can be used with ri > > Use ERR_CAST instead of ERR_PTR + PTR_ERR to simplify the > conversion process. > > Signed-off-by: Li Zetao Reviewed-by: Simon Horman