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:
9f4873f
)
EDAC/ti: Remove redundant error messages
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Wed, 11 Aug 2021 11:26:26 +0000
(19:26 +0800)
committer
Borislav Petkov
<bp@suse.de>
Thu, 7 Oct 2021 17:16:01 +0000
(19:16 +0200)
In the function ti_edac_probe(), devm_ioremap_resource() and
platform_get_irq() already issue error messages when they fail so remove
the redundant error messages in the EDAC driver.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lkml.kernel.org/r/20210811112626.27848-1-tangbin@cmss.chinamobile.com
drivers/edac/ti_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/ti_edac.c
b/drivers/edac/ti_edac.c
index 169f96e51c2933722e4cb457b0101f1cf9d197e2..6971ded598de09038552b2266b5e3d4209293bc0 100644
(file)
--- a/
drivers/edac/ti_edac.c
+++ b/
drivers/edac/ti_edac.c
@@
-245,11
+245,8
@@
static int ti_edac_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
reg = devm_ioremap_resource(dev, res);
- if (IS_ERR(reg)) {
- edac_printk(KERN_ERR, EDAC_MOD_NAME,
- "EMIF controller regs not defined\n");
+ if (IS_ERR(reg))
return PTR_ERR(reg);
- }
layers[0].type = EDAC_MC_LAYER_ALL_MEM;
layers[0].size = 1;
@@
-281,8
+278,6
@@
static int ti_edac_probe(struct platform_device *pdev)
error_irq = platform_get_irq(pdev, 0);
if (error_irq < 0) {
ret = error_irq;
- edac_printk(KERN_ERR, EDAC_MOD_NAME,
- "EMIF irq number not defined.\n");
goto err;
}