Skip to contentSkip to conversation

soc: qcom: Remove redundant dev_err()

PATCH Applied Pan Chuang 2 participants 2 messages Jul 23 – Sep 1

Subsystems (2)
lore
Share & tools
lore

Pan Chuang

author
#0 lore raw

PATCH 1/1 soc: qcom: Remove redundant dev_err()

Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"),
devm_request_irq() and devm_request_threaded_irq() automatically log detailed error messages on failure. Remove the now-redundant driver-specific dev_err() calls.

---
 drivers/soc/qcom/qcom_aoss.c | 4 +---
 drivers/soc/qcom/smp2p.c     | 4 +---
 drivers/soc/qcom/smsm.c      | 4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)
drivers/soc/qcom/qcom_aoss.c +1 -3
index 259c41f0c34e..a6b673cd7678 100644
@@ -602,10 +602,8 @@ static int qmp_probe(struct platform_device *pdev)
 	irq = platform_get_irq(pdev, 0);
 	ret = devm_request_irq(&pdev->dev, irq, qmp_intr, 0,
 			       "aoss-qmp", qmp);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to request interrupt\n");
+	if (ret < 0)
 		goto err_free_mbox;
-	}
 
 	ret = qmp_open(qmp);
 	if (ret < 0)
drivers/soc/qcom/smp2p.c +1 -3
index af0ceeaf6e07..6f07fef40ce8 100644
@@ -720,10 +720,8 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
 					NULL, qcom_smp2p_intr,
 					IRQF_ONESHOT,
 					NULL, (void *)smp2p);
-	if (ret) {
-		dev_err(&pdev->dev, "failed to request interrupt\n");
+	if (ret)
 		goto unwind_interfaces;
-	}
 
 	/*
 	 * Treat smp2p interrupt as wakeup source, but keep it disabled
drivers/soc/qcom/smsm.c +1 -3
index 021e9d1f61dc..396025074e1e 100644
@@ -451,10 +451,8 @@ static int smsm_inbound_entry(struct qcom_smsm *smsm,
 					NULL, smsm_intr,
 					IRQF_ONESHOT,
 					"smsm", (void *)entry);
-	if (ret) {
-		dev_err(smsm->dev, "failed to request interrupt\n");
+	if (ret)
 		return ret;
-	}
 
 	entry->domain = irq_domain_create_linear(of_fwnode_handle(node), 32, &smsm_irq_ops, entry);
 	if (!entry->domain) {
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Pan Chuang

Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"),
devm_request_irq() and devm_request_threaded_irq() automatically log detailed error messages on failure. Remove the now-redundant driver-specific dev_err() calls.

[...]

Applied, thanks!

[1/1] soc: qcom: Remove redundant dev_err()

      commit: 29b96e2769def61531c19aa537f5a3cf3ef38e41

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>