* [PATCH -next] usb: cdns3: Remove redundant dev_err call in cdns3_probe()
@ 2019-09-03 15:36 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2019-09-03 15:36 UTC (permalink / raw)
To: Greg Kroah-Hartman, Felipe Balbi, Pawel Laszczak
Cc: Wei Yongjun, linux-usb, kernel-janitors
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@huawei.com>
---
drivers/usb/cdns3/core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 300df58a190b..9b1d8fed4e5a 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -462,10 +462,8 @@ static int cdns3_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
regs = devm_ioremap_resource(dev, res);
- if (IS_ERR(regs)) {
- dev_err(dev, "couldn't iomap dev resource\n");
+ if (IS_ERR(regs))
return PTR_ERR(regs);
- }
cdns->dev_regs = regs;
cdns->otg_irq = platform_get_irq_byname(pdev, "otg");
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-03 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 15:36 [PATCH -next] usb: cdns3: Remove redundant dev_err call in cdns3_probe() Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).