Skip to content

Commit 0b6d4ab

Browse files
Tang Binsuryasaimadhu
authored andcommitted
EDAC/ti: Remove redundant error messages
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9f4873f commit 0b6d4ab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/edac/ti_edac.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,8 @@ static int ti_edac_probe(struct platform_device *pdev)
245245

246246
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
247247
reg = devm_ioremap_resource(dev, res);
248-
if (IS_ERR(reg)) {
249-
edac_printk(KERN_ERR, EDAC_MOD_NAME,
250-
"EMIF controller regs not defined\n");
248+
if (IS_ERR(reg))
251249
return PTR_ERR(reg);
252-
}
253250

254251
layers[0].type = EDAC_MC_LAYER_ALL_MEM;
255252
layers[0].size = 1;
@@ -281,8 +278,6 @@ static int ti_edac_probe(struct platform_device *pdev)
281278
error_irq = platform_get_irq(pdev, 0);
282279
if (error_irq < 0) {
283280
ret = error_irq;
284-
edac_printk(KERN_ERR, EDAC_MOD_NAME,
285-
"EMIF irq number not defined.\n");
286281
goto err;
287282
}
288283

0 commit comments

Comments
 (0)