Skip to content

Commit 705f6e1

Browse files
Hui Tangherbertx
authored andcommitted
crypto: hisilicon/hpre - delete redundant log and return in advance
'hpre_cfg_by_dsm' has checked and printed error path internally. It is not necessary to do it here, so remove it. It should return error immediately when return value of 'hpre_cfg_by_dsm' is non-zero, and no need to execute the remaining sentences. Signed-off-by: Hui Tang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 5bc3962 commit 705f6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/hisilicon/hpre/hpre_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int hpre_set_user_domain_and_cache(struct hisi_qm *qm)
384384
if (qm->ver == QM_HW_V2) {
385385
ret = hpre_cfg_by_dsm(qm);
386386
if (ret)
387-
dev_err(dev, "acpi_evaluate_dsm err.\n");
387+
return ret;
388388

389389
disable_flr_of_bme(qm);
390390
}

0 commit comments

Comments
 (0)