EDAC/ti: Remove redundant error messages
PATCH 1/1 EDAC/ti: Remove redundant error messages
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 <[email protected]>
--- drivers/edac/ti_edac.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/edac/ti_edac.c +1 -6
@@ -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; }
Signature · 1 line
2.20.1.windows.1
Quoted 28 lines · Tang Bin
In the function
ti_edac_probe,devm_ioremap_resource()andplatform_get_irq()have already contains error message, so remove the redundant error messages.Signed-off-by Tang Bin <[email protected]>--- drivers/edac/ti_edac.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)drivers/edac/ti_edac.c +1
-4@@ -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 ;
drivers/edac/ti_edac.c static int ti_edac_probe(struct platform_device *pdev) · line 283
Quoted 8 lines
drivers/edac/ti_edac.c +0
-2@@ -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.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette