crypto: hisilicon/sgl - remove unnecessary checks for curr_hw_sgl error

Before calling acc_get_sgl(), the mem_block has already been
created. acc_get_sgl() will not return NULL or any other error.
so the return value check can be removed.

Signed-off-by: nieweiqiang <nieweiqiang@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
nieweiqiang 2025-10-25 18:12:57 +08:00 • committed by Herbert Xu
commit 51996331f7