Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2402458pxb; Thu, 4 Nov 2021 20:21:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/YeydlHaUYVWnQf75wDDf5kwCPCVU2aXoURosXKnKORsyh6BHI1rYHP419EXR3DTBt8EX X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr37915234edb.186.1636082473439; Thu, 04 Nov 2021 20:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636082473; cv=none; d=google.com; s=arc-20160816; b=qHWge7oOaMmZgp15T0Mc19+rgjazXxBl387k0jZmPOGyqkxj1cG3oObuINJOlO9KaQ /wqmyKV2N9xBdokBNeKWxOh9wRc0wEHeGETmOiFwoJF09WNYfbK5biTIBy7inuIaTi8l X3+CgHLZnxPB2HFIQ2jgFd0hZf2FfL+ktEvVcRrVQwstGMdNcjE+F2fMCrznOlT8DEfP aOEcMCeAn+4Gu0pP2vEqE8CN3+zR4lJAEk6u3YG9Jkkz3VXQ/JOSqHwtFWcxpCwN2EWd 0rfZe/ZdApXaRChG9TPEhQwn96f5XmWvqNwA0S7/T7SLHlV7z/aa0N8ZCJVGEfOVwP1G jINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AWUm2AUjf9wLx8/iCgk2udUTgLJONTwDtdoEj3iQV+o=; b=xHrAlLQF5trCbBXX8b6S6AjQxq4akAOYH4RApfh10sXUAz9JYKsV9zYI/OBtBy+N9P i0QJbZzYUIpW1x0Px2ivoRJlGCG/mUUVc20qqql3oMj3/cCtG6rxPiNeTWYwzDA2KbPQ wqy29lD5mpj8CYg3va86435GgjjNNTB3iYYxj5rMR2lz3RAtxzw/i2//XfdnEpy0McWF GxEBII/YfvO9BEnCVGSA6QMgtgU9dQ1HR9nGZYDJs11po8BgdLpGaT5JjuEjUkyogGnj vTQMSt3jlKyUSZjDVwRVVWDw8/fkLidtNHAp8me+YIxj5DDol4I1U4LnzLgh825tLL2O BfNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js16si11605403ejc.715.2021.11.04.20.20.50; Thu, 04 Nov 2021 20:21:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbhKEB6I (ORCPT + 99 others); Thu, 4 Nov 2021 21:58:08 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:46030 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229685AbhKEB6H (ORCPT ); Thu, 4 Nov 2021 21:58:07 -0400 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 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowACnPyD6joRhBc2SBg--.22848S2 X-Coremail-Antispam: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otu46lvutnvoduhdfq/1tbiBgkQA10TfuT6OgAAsI Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The print function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Xu Wang --- 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); -- 2.25.1