Skip to contentSkip to conversation

usb: dwc3: qcom: Remove redundant dev_err call in dwc3_qcom_probe()

PATCH Applied Bixuan Cui 4 participants 4 messages Apr 10, 2021 – May 26, 2021

Subsystems (4)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 usb: dwc3: qcom: Remove redundant dev_err call in dwc3_qcom_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/usb/dwc3/dwc3-qcom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/dwc3/dwc3-qcom.c +0 -1
index e37cc58dfa55..726d5048d87c 100644
@@ -774,7 +774,6 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
 
 	qcom->qscratch_base = devm_ioremap_resource(dev, parent_res);
 	if (IS_ERR(qcom->qscratch_base)) {
-		dev_err(dev, "failed to map qscratch, err=%d\n", ret);
 		ret = PTR_ERR(qcom->qscratch_base);
 		goto clk_disable;
 	}
Reviewed-by on v1 1/1
#2 lore raw
In reply to Bixuan Cui
Quoted 6 lines · Bixuan Cui

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Regards,
Bjorn

Quoted 17 lines
---
 drivers/usb/dwc3/dwc3-qcom.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/dwc3/dwc3-qcom.c +0 -1
index e37cc58dfa55..726d5048d87c 100644
@@ -774,7 +774,6 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
 
 	qcom->qscratch_base = devm_ioremap_resource(dev, parent_res);
 	if (IS_ERR(qcom->qscratch_base)) {
-		dev_err(dev, "failed to map qscratch, err=%d\n", ret);
 		ret = PTR_ERR(qcom->qscratch_base);
 		goto clk_disable;
 	}
#3 lore raw
In reply to Bixuan Cui
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 8 lines · On Sat, 10 Apr 2021 10:48:18 +0800 you wrote:

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

[...]

Here is the summary with links:
- [-next] usb: dwc3: qcom: Remove redundant dev_err call in dwc3_qcom_probe()

    https://git.kernel.org/qcom/c/dc1e7e9a27e0

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html