Skip to contentSkip to conversation

crypto: allwinner - remove redundant platform_get_irq error message

PATCH In review Chen Zhou 2 participants 2 messages Feb 5, 2020 – Feb 13, 2020

Subsystems (3)
lore
Share & tools
lore

Chen Zhou

author
#0 lore raw

PATCH 1/1 crypto: allwinner - remove redundant platform_get_irq error message

Function dev_err() after platform_get_irq() is redundant because platform_get_irq() already prints an error.

---
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +1 -3
index f72346a..3e4e4bb 100644
@@ -565,10 +565,8 @@ static int sun8i_ce_probe(struct platform_device *pdev)
 
 	/* Get Non Secure IRQ */
 	irq = platform_get_irq(pdev, 0);
-	if (irq < 0) {
-		dev_err(ce->dev, "Cannot get CryptoEngine Non-secure IRQ\n");
+	if (irq < 0)
 		return irq;
-	}
 
 	ce->reset = devm_reset_control_get(&pdev->dev, NULL);
 	if (IS_ERR(ce->reset)) {
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 7 lines · Chen Zhou

Function dev_err() after platform_get_irq() is redundant because platform_get_irq() already prints an error.

---
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch applied. 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