* [PATCH] EDAC/ti: Remove redundant error messages
@ 2021-08-11 11:26 Tang Bin
2021-10-07 17:48 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Tang Bin @ 2021-08-11 11:26 UTC (permalink / raw)
To: kristo, bp, mchehab, tony.luck, james.morse, rric
Cc: linux-edac, linux-kernel, Tang Bin
In the function ti_edac_probe, devm_ioremap_resource() and
platform_get_irq() have already contains error message, so
remove the redundant error messages.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
drivers/edac/ti_edac.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c
index 169f96e51..6971ded59 100644
--- 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;
}
--
2.20.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] EDAC/ti: Remove redundant error messages
2021-08-11 11:26 [PATCH] EDAC/ti: Remove redundant error messages Tang Bin
@ 2021-10-07 17:48 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2021-10-07 17:48 UTC (permalink / raw)
To: Tang Bin
Cc: kristo, mchehab, tony.luck, james.morse, rric, linux-edac, linux-kernel
On Wed, Aug 11, 2021 at 07:26:26PM +0800, Tang Bin wrote:
> In the function ti_edac_probe, devm_ioremap_resource() and
> platform_get_irq() have already contains error message, so
> remove the redundant error messages.
>
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
> drivers/edac/ti_edac.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c
> index 169f96e51..6971ded59 100644
> --- 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;
> }
>
> --
Applied, thanks.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-07 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 11:26 [PATCH] EDAC/ti: Remove redundant error messages Tang Bin
2021-10-07 17:48 ` Borislav Petkov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.