crypto: hisilicon/sgl - Delete redundant parameter verification
authorChenghai Huang <huangchenghai2@huawei.com>
Sun, 7 Apr 2024 07:59:54 +0000 (15:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Apr 2024 07:07:52 +0000 (15:07 +0800)
commit040279e84d4e94d65cd5a9f95f9821e26c72d26e
treeca192bfc7ab67353b07768ed945bfcfb9cf274a7
parent8be0913389718e8d27c4f1d4537b5e1b99ed7739
crypto: hisilicon/sgl - Delete redundant parameter verification

The input parameter check in acc_get_sgl is redundant. The
caller has been verified once. When the check is performed for
multiple times, the performance deteriorates.

So the redundant parameter verification is deleted, and the
index verification is changed to the module entry function for
verification.

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