Skip to contentSkip to conversation

crypto: hisilicon/hpre - delete redundant log

PATCH Superseded Hui Tang 2 participants 3 messages Apr 2, 2021 – Apr 9, 2021

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Hui Tang

author
#0 lore raw

PATCH v2 1/1 crypto: hisilicon/hpre - delete redundant log

'hpre_cfg_by_dsm' has checked and printed error path internally. It is not necessary to do it here, so remove it.

v1 -> v2:
- Return immediately when return value of 'hpre_cfg_by_dsm' is non-zero.

---
 drivers/crypto/hisilicon/hpre/hpre_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/hisilicon/hpre/hpre_main.c +1 -1
index c7ab06d..fa40835 100644
@@ -386,7 +386,7 @@ static int hpre_set_user_domain_and_cache(struct hisi_qm *qm)
 	if (qm->ver == QM_HW_V2) {
 		ret = hpre_cfg_by_dsm(qm);
 		if (ret)
-			dev_err(dev, "acpi_evaluate_dsm err.\n");
+			return ret;
 
 		disable_flr_of_bme(qm);
 	}
Signature · 1 line
2.8.1
maintainer
#1 lore raw
Quoted 10 lines · Hui Tang

'hpre_cfg_by_dsm' has checked and printed error path internally. It is not necessary to do it here, so remove it.

v1 -> v2:
- Return immediately when return value of 'hpre_cfg_by_dsm' is non-zero.

---
 drivers/crypto/hisilicon/hpre/hpre_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Your patch description is misleading as the patch does moe than just remove the redundant printk. Please rephrase so that it is clear that the patch is in fact changing behaviour.

Thanks,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
author
#2 lore raw
Quoted 12 lines · Herbert Xu
Quoted 10 lines · Hui Tang

'hpre_cfg_by_dsm' has checked and printed error path internally. It is not necessary to do it here, so remove it.

v1 -> v2:
- Return immediately when return value of 'hpre_cfg_by_dsm' is non-zero.

---
 drivers/crypto/hisilicon/hpre/hpre_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 3 lines

Your patch description is misleading as the patch does moe than just remove the redundant printk. Please rephrase so that it is clear that the patch is in fact changing behaviour.

Okay, I will fix it in next version.

Quoted 1 line