[PATCH 0/2] crypto: hisilicon/qm - memory allocation cleanups

Ethan Carter Edwards posted 2 patches 9 months, 1 week ago
drivers/crypto/hisilicon/qm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH 0/2] crypto: hisilicon/qm - memory allocation cleanups
Posted by Ethan Carter Edwards 9 months, 1 week ago
This series contains two small cleanups to improve code quality and
readability. One removes a sizeof(char) piece of code (because it
evaluates to 1 anyways) and one switches to the helper function
devm_kcalloc.

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
---
Ethan Carter Edwards (2):
      crypto: hisilicon/qm - remove sizeof(char)
      crypto: hisilicon/qm - replace devm_kzalloc with devm_kcalloc

 drivers/crypto/hisilicon/qm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 37ff6e9a2ce321b7932d3987701757fb4d87b0e6
change-id: 20250503-hisilicon_qm-7b581a9b3799

Best regards,
-- 
Ethan Carter Edwards <ethan@ethancedwards.com>
Re: [PATCH 0/2] crypto: hisilicon/qm - memory allocation cleanups
Posted by Herbert Xu 9 months, 1 week ago
On Sat, May 03, 2025 at 04:21:26PM -0400, Ethan Carter Edwards wrote:
> This series contains two small cleanups to improve code quality and
> readability. One removes a sizeof(char) piece of code (because it
> evaluates to 1 anyways) and one switches to the helper function
> devm_kcalloc.
> 
> Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
> ---
> Ethan Carter Edwards (2):
>       crypto: hisilicon/qm - remove sizeof(char)
>       crypto: hisilicon/qm - replace devm_kzalloc with devm_kcalloc
> 
>  drivers/crypto/hisilicon/qm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> ---
> base-commit: 37ff6e9a2ce321b7932d3987701757fb4d87b0e6
> change-id: 20250503-hisilicon_qm-7b581a9b3799

All applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt