[PATCH -next] memory: da8xx-ddrctl: remove redundant dev_err call in da8xx_ddrctl_probe()

From: Wei Yongjun
Date: Thu Feb 09 2017 - 10:29:53 EST


From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

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

Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
---
drivers/memory/da8xx-ddrctl.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c
index 030afbe..3286aee 100644
--- a/drivers/memory/da8xx-ddrctl.c
+++ b/drivers/memory/da8xx-ddrctl.c
@@ -122,10 +122,8 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev)

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ddrctl = devm_ioremap_resource(dev, res);
- if (IS_ERR(ddrctl)) {
- dev_err(dev, "unable to map memory controller registers\n");
+ if (IS_ERR(ddrctl))
return PTR_ERR(ddrctl);
- }

for (; setting->name; setting++) {
knob = da8xx_ddrctl_match_knob(setting);