All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: pxa: ssp: remove unnecessary print function dev_err()
@ 2021-06-24  2:41 ` 13145886936
  0 siblings, 0 replies; 6+ messages in thread
From: 13145886936 @ 2021-06-24  2:41 UTC (permalink / raw)
  To: linux, linux-arm-kernel; +Cc: linux-kernel, gushengxian

From: gushengxian <gushengxian@yulong.com>

The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: gushengxian <gushengxian@yulong.com>
---
 arch/arm/plat-pxa/ssp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 563440315acd..96b8765e4f57 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -147,7 +147,6 @@ static int pxa_ssp_probe(struct platform_device *pdev)
 
 	ssp->irq = platform_get_irq(pdev, 0);
 	if (ssp->irq < 0) {
-		dev_err(dev, "no IRQ resource defined\n");
 		return -ENODEV;
 	}
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] ARM: pxa: ssp: remove unnecessary print function dev_err()
@ 2021-06-24  9:51 ` 13145886936
  0 siblings, 0 replies; 6+ messages in thread
From: 13145886936 @ 2021-06-24  9:51 UTC (permalink / raw)
  To: linux; +Cc: linux-arm-kernel, linux-kernel, gushengxian

From: gushengxian <gushengxian@yulong.com>

The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: gushengxian <gushengxian@yulong.com>
---
 arch/arm/plat-pxa/ssp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 563440315acd..9e77b3392c1e 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -146,10 +146,8 @@ static int pxa_ssp_probe(struct platform_device *pdev)
 	}
 
 	ssp->irq = platform_get_irq(pdev, 0);
-	if (ssp->irq < 0) {
-		dev_err(dev, "no IRQ resource defined\n");
+	if (ssp->irq < 0)
 		return -ENODEV;
-	}
 
 	if (dev->of_node) {
 		const struct of_device_id *id =
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-24  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24  2:41 [PATCH] ARM: pxa: ssp: remove unnecessary print function dev_err() 13145886936
2021-06-24  2:41 ` 13145886936
2021-06-24  9:24 ` Russell King (Oracle)
2021-06-24  9:24   ` Russell King (Oracle)
2021-06-24  9:51 13145886936
2021-06-24  9:51 ` 13145886936

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.