From: Tang Bin Date: Wed, 11 Aug 2021 12:19:34 +0000 (+0800) Subject: mfd: ti_am335x_tscadc: Delete superfluous error message X-Git-Tag: io_uring-5.15-2021-09-11~14^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bc239d8d6dd927af1df3fa3984ccf5f531d1be54;p=linux-2.6-block.git mfd: ti_am335x_tscadc: Delete superfluous error message 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 0e6e25308190..55adc379f94b 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);