diff mbox series

ARM: samsung: Omit superfluous error message in s3c_adc_probe()

Message ID 20200419070541.14820-1-tangbin@cmss.chinamobile.com (mailing list archive)
State Mainlined
Commit ee9a71ad25549d28c26542d93270071e9a269408
Headers show
Series ARM: samsung: Omit superfluous error message in s3c_adc_probe() | expand

Commit Message

Tang Bin April 19, 2020, 7:05 a.m. UTC
In the function s3c_adc_probe(), when get irq failed,
the function platform_get_irq() logs an error message,
so remove redundant message here.

Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 arch/arm/plat-samsung/adc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Krzysztof Kozlowski April 21, 2020, 9:38 a.m. UTC | #1
On Sun, Apr 19, 2020 at 03:05:41PM +0800, Tang Bin wrote:
> In the function s3c_adc_probe(), when get irq failed,
> the function platform_get_irq() logs an error message,
> so remove redundant message here.
> 
> Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
>  arch/arm/plat-samsung/adc.c | 4 +---

Thanks, applied.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c
index 4f7b27239..839bf7d5f 100644
--- a/arch/arm/plat-samsung/adc.c
+++ b/arch/arm/plat-samsung/adc.c
@@ -354,10 +354,8 @@  static int s3c_adc_probe(struct platform_device *pdev)
 	}
 
 	adc->irq = platform_get_irq(pdev, 1);
-	if (adc->irq <= 0) {
-		dev_err(dev, "failed to get adc irq\n");
+	if (adc->irq <= 0)
 		return -ENOENT;
-	}
 
 	ret = devm_request_irq(dev, adc->irq, s3c_adc_irq, 0, dev_name(dev),
 				adc);