crypto: hisilicon/qm - no judgment in the back process
authorKai Ye <yekai13@huawei.com>
Fri, 19 Aug 2022 07:46:18 +0000 (07:46 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Aug 2022 10:50:40 +0000 (18:50 +0800)
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>
drivers/crypto/hisilicon/qm.c

index b2e7abf..c180ad3 100644 (file)
@@ -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;
 }