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

Use existing swap() function rather than duplicating its implementation.

./lib/crypto/mpi/ec.c:1291:20-21: WARNING opportunity for swap().
./lib/crypto/mpi/ec.c:1292:20-21: WARNING opportunity for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9328
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/crypto/mpi/ec.c