[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210601083100.130776-1-chengzhihao1@huawei.com>
Date: Tue, 1 Jun 2021 16:31:00 +0800
From: Zhihao Cheng <chengzhihao1@...wei.com>
To: <ohad@...ery.com>, <bjorn.andersson@...aro.org>,
<mathieu.poirier@...aro.org>
CC: <linux-remoteproc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<chengzhihao1@...wei.com>, <yukuai3@...wei.com>
Subject: [PATCH] remoteproc: pru: Remove redundant dev_err call in pru_rproc_probe()
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@...wei.com>
---
drivers/remoteproc/pru_rproc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index e5778e476245..6491c731c6e2 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -822,8 +822,6 @@ static int pru_rproc_probe(struct platform_device *pdev)
mem_names[i]);
pru->mem_regions[i].va = devm_ioremap_resource(dev, res);
if (IS_ERR(pru->mem_regions[i].va)) {
- dev_err(dev, "failed to parse and map memory resource %d %s\n",
- i, mem_names[i]);
ret = PTR_ERR(pru->mem_regions[i].va);
return ret;
}
--
2.31.1
Powered by blists - more mailing lists