]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: camm/qi - Use ERR_CAST() to return error-valued pointer
authorChen Yufan <chenyufan@vivo.com>
Fri, 6 Sep 2024 10:43:24 +0000 (18:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Sep 2024 10:26:52 +0000 (18:26 +0800)
commite2b19a4840650ba1d679562d4a8959f3f6070064
tree74b2b2f28bfc84d1b904bf8f3e2c5d33a5ff9228
parentca459e5f826f262f044bda85ede8460af7f4bec9
crypto: camm/qi - Use ERR_CAST() to return error-valued pointer

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@vivo.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c