]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: lib/mpi - Use swap() in mpi_powm()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 14 Jun 2024 03:09:12 +0000 (11:09 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Jun 2024 12:04:18 +0000 (22:04 +1000)
commitb44327ebc1c926e4b55a7721e3d91313fcf188b1
tree2726680f50a140baf8f7d9b4d42d6cab203fc233
parentf0da7a231c7d0bafb6bb56da597cb2bfaf2c7028
crypto: lib/mpi - Use swap() in mpi_powm()

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@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9327
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/mpi/mpi-pow.c