projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9472aff
)
usb: cdns3: Remove redundant dev_err call in cdns3_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 3 Sep 2019 15:36:25 +0000
(15:36 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 18:31:34 +0000
(20:31 +0200)
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>
Link:
https://lore.kernel.org/r/20190903153625.85691-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/cdns3/core.c
b/drivers/usb/cdns3/core.c
index 300df58a190bd50fc4e7b1a7323e72e851b17486..06f1e105be4e7f67618cec8d475d493b62757ab9 100644
(file)
--- 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");