[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZuQUmpO1v07tXDuE@gondor.apana.org.au>
Date: Fri, 13 Sep 2024 18:31:54 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Chen Yufan <chenyufan@...o.com>
Cc: Horia Geantă <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Gaurav Jain <gaurav.jain@....com>,
"David S. Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
opensource.kernel@...o.com
Subject: Re: [PATCH v1] crypto: camm/qi - Use ERR_CAST() to return
error-valued pointer
On Fri, Sep 06, 2024 at 06:43:24PM +0800, Chen Yufan wrote:
> Instead of directly casting and returning (void *) pointer, use ERR_CAST
> to explicitly return an error-valued pointer. This makes the error handling
> more explicit and improves code clarity.
>
> Signed-off-by: Chen Yufan <chenyufan@...o.com>
> ---
> drivers/crypto/caam/caamalg_qi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists