]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: hisilicon/sgl - remove unnecessary checks for curr_hw_sgl error
authornieweiqiang <nieweiqiang@huawei.com>
Sat, 25 Oct 2025 10:12:57 +0000 (18:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Oct 2025 09:50:43 +0000 (17:50 +0800)
commit51996331f713b2dfdbc47210c40872988a31f1dd
treea3895f906378bacf29588bafa85162a0063c5b4e
parent1b5645e454615f5bdae432d0d0d4f94ad0d5c09e
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>
drivers/crypto/hisilicon/sgl.c