Re: [PATCH v1] crypto: camm/qi - Use ERR_CAST() to return error-valued pointer
From: Herbert Xu
Date: Fri Sep 13 2024 - 06:36:47 EST
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@xxxxxxxx>
> ---
> drivers/crypto/caam/caamalg_qi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt