diff options
author | Kai Ye <yekai13@huawei.com> | 2022-08-19 10:46:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-08-26 13:50:40 +0300 |
commit | d03e89b3eba46121e8cbf2753b02be407810991b (patch) | |
tree | 6717be9652ec15962b4525431c3b0ee65b45b517 /drivers/crypto/hisilicon | |
parent | 9b32fed8d6715207a0a2cd42f48a147d203a7576 (diff) | |
download | linux-d03e89b3eba46121e8cbf2753b02be407810991b.tar.xz |
crypto: hisilicon/qm - no judgment in the back process
Judgment should not be added in the back process. So clean it.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hisilicon')
-rw-r--r-- | drivers/crypto/hisilicon/qm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index b2e7abff1b8a..c180ad33d2f8 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -1357,11 +1357,9 @@ static int qm_set_sqc_cqc_vft(struct hisi_qm *qm, u32 fun_num, u32 base, return 0; back_sqc_cqc: - for (i = SQC_VFT; i <= CQC_VFT; i++) { - ret = qm_set_vft_common(qm, i, fun_num, 0, 0); - if (ret) - return ret; - } + for (i = SQC_VFT; i <= CQC_VFT; i++) + qm_set_vft_common(qm, i, fun_num, 0, 0); + return ret; } |