crypto: hisilicon/sgl - small cleanups for sgl.c
authorWeili Qian <qianweili@huawei.com>
Sat, 25 Nov 2023 11:50:09 +0000 (19:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Dec 2023 10:03:26 +0000 (18:03 +0800)
commitfb4ac519c6caf5fdfcc30ef838cae55dbc919e2e
treef77deaeae866597711e462c5550814215cef7f89
parenta9864bae1806499ebf3757a9e71dddde5b9c48c6
crypto: hisilicon/sgl - small cleanups for sgl.c

1. Remove unnecessary brackets in function hisi_acc_create_sgl_pool().
2. Modify local variable type, ensure that the variable type is
consistent with the variable type to be compared.
3. Because the function clear_hw_sgl_sge() is in the task process,
obtain the value of le16_to_cpu(hw_sgl->entry_sum_in_sgl) before
loop execting to shorten the loop execution time.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sgl.c