[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZnVzWRPBPQZ29Haa@gondor.apana.org.au>
Date: Fri, 21 Jun 2024 22:34:33 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: davem@...emloft.net, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH] crypto: lib - Use swap() in mpi_powm()
On Fri, Jun 14, 2024 at 11:09:12AM +0800, Jiapeng Chong wrote:
> Use existing swap() function rather than duplicating its implementation.
>
> ./lib/crypto/mpi/mpi-pow.c:211:11-12: WARNING opportunity for swap().
> ./lib/crypto/mpi/mpi-pow.c:239:12-13: WARNING opportunity for swap().
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9327
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
> ---
> lib/crypto/mpi/mpi-pow.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 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