Skip to contentSkip to conversation

media: camss: csid: Remove redundant dev_err call in msm_csid_subdev_init()

PATCH Applied Yang Yingliang 3 participants 3 messages Apr 2, 2021 – May 26, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: camss: csid: Remove redundant dev_err call in msm_csid_subdev_init()

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

---
 drivers/media/platform/qcom/camss/camss-csid.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/platform/qcom/camss/camss-csid.c +1 -3
index 463760c29294..cc11fbfdae13 100644
@@ -568,10 +568,8 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid,
 
 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
 	csid->base = devm_ioremap_resource(dev, r);
-	if (IS_ERR(csid->base)) {
-		dev_err(dev, "could not map memory\n");
+	if (IS_ERR(csid->base))
 		return PTR_ERR(csid->base);
-	}
 
 	/* Interrupt */
 
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Yang,

Thanks for the fix.

Quoted 30 lines · Yang Yingliang

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

---
 drivers/media/platform/qcom/camss/camss-csid.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/platform/qcom/camss/camss-csid.c +1 -4
index 463760c29294..cc11fbfdae13 100644
@@ -568,10 +568,8 @@ int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid,
 
        r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
        csid->base = devm_ioremap_resource(dev, r);
-       if (IS_ERR(csid->base)) {
-               dev_err(dev, "could not map memory\n");
+       if (IS_ERR(csid->base))
                return PTR_ERR(csid->base);
-       }
 
        /* Interrupt */
 
--

2.25.1

#2 lore raw
In reply to Yang Yingliang
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 Fri, 2 Apr 2021 17:32:55 +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] media: camss: csid: Remove redundant dev_err call in msm_csid_subdev_init()

    https://git.kernel.org/qcom/c/6c0ed6d4b321

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