From patchwork Fri Nov 5 01:55:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Wang X-Patchwork-Id: 12603975 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F7D6C433FE for ; Fri, 5 Nov 2021 02:00:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7A1AF61108 for ; Fri, 5 Nov 2021 02:00:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbhKECDa (ORCPT ); Thu, 4 Nov 2021 22:03:30 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:48228 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229596AbhKECDa (ORCPT ); Thu, 4 Nov 2021 22:03:30 -0400 X-Greylist: delayed 323 seconds by postgrey-1.27 at vger.kernel.org; Thu, 04 Nov 2021 22:03:29 EDT Received: from localhost.localdomain (unknown [124.16.141.244]) by APP-01 (Coremail) with SMTP id qwCowACnPyD6joRhBc2SBg--.22848S2; Fri, 05 Nov 2021 09:55:06 +0800 (CST) From: Xu Wang To: prabhakar.mahadev-lad.rj@bp.renesas.com, jic23@kernel.org, lars@metafoo.de Cc: linux-iio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: rzg2l_adc: Remove unnecessary print function dev_err() Date: Fri, 5 Nov 2021 01:55:04 +0000 Message-Id: <20211105015504.39226-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: qwCowACnPyD6joRhBc2SBg--.22848S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZ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1tbiBgkQA10TfuT6OgAAsI Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The print function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Xu Wang Reviewed-by: Geert Uytterhoeven Reviewed-by: Lad Prabhakar --- drivers/iio/adc/rzg2l_adc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/adc/rzg2l_adc.c b/drivers/iio/adc/rzg2l_adc.c index 32fbf57c362f..9d5be52bd948 100644 --- a/drivers/iio/adc/rzg2l_adc.c +++ b/drivers/iio/adc/rzg2l_adc.c @@ -506,10 +506,8 @@ static int rzg2l_adc_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "no irq resource\n"); + if (irq < 0) return irq; - } ret = devm_request_irq(dev, irq, rzg2l_adc_isr, 0, dev_name(dev), adc);