LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] mfd: ti_am335x_tscadc: Delete superfluous error message
@ 2021-08-11 12:19 Tang Bin
  2021-08-16 13:03 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Tang Bin @ 2021-08-11 12:19 UTC (permalink / raw)
  To: lee.jones; +Cc: linux-kernel, Tang Bin

In the function ti_tscadc_probe(), when get irq failed,
platform_get_irq() logs an error message, so remove
redundant message here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 drivers/mfd/ti_am335x_tscadc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index 0e6e25308..55adc379f 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -175,10 +175,9 @@ static	int ti_tscadc_probe(struct platform_device *pdev)
 	tscadc->dev = &pdev->dev;
 
 	err = platform_get_irq(pdev, 0);
-	if (err < 0) {
-		dev_err(&pdev->dev, "no irq ID is specified.\n");
+	if (err < 0)
 		goto ret;
-	} else
+	else
 		tscadc->irq = err;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-- 
2.20.1.windows.1




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

* Re: [PATCH] mfd: ti_am335x_tscadc: Delete superfluous error message
  2021-08-11 12:19 [PATCH] mfd: ti_am335x_tscadc: Delete superfluous error message Tang Bin
@ 2021-08-16 13:03 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2021-08-16 13:03 UTC (permalink / raw)
  To: Tang Bin; +Cc: linux-kernel

On Wed, 11 Aug 2021, Tang Bin wrote:

> In the function ti_tscadc_probe(), when get irq failed,
> platform_get_irq() logs an error message, so remove
> redundant message here.
> 
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
>  drivers/mfd/ti_am335x_tscadc.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

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

end of thread, other threads:[~2021-08-16 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 12:19 [PATCH] mfd: ti_am335x_tscadc: Delete superfluous error message Tang Bin
2021-08-16 13:03 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).