Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3652354ybz; Mon, 4 May 2020 07:12:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJwOW2EZtO0PRNw6CgPcN9IhdtM30dfjcTOoZ+PrWd9Sk+wh71AoKAJQBFSchpKxuHYY5D/ X-Received: by 2002:a17:906:68cf:: with SMTP id y15mr14404779ejr.260.1588601570526; Mon, 04 May 2020 07:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588601570; cv=none; d=google.com; s=arc-20160816; b=hR/IDMB3BIxFq5w4GIgnAb8k/1kH/j9EQPnhOPb4gIAgF4fLk0bQ0/GVo/g3wuMblu L85yhcm59w65Kd8cZ0lHxIvYhTgPBVKKxrucQ7blzgREEhkKAhcSawnTHGSdhh8xsYqy AVK0XZs7G2yRvK9XLFAKKZ40XLqEj/PmlG4JeCaghJYByspEN6E6g5Cblgm1quh9+TWy P5ALr+YoR61LToMk1gNrO7eZNtk1GNYw279bGSfZ/+oj37LVbJGlVLwpgAYsqHhKcSsN wCTQSqKt5qW8tBneDd8O5cDhNJyBnRdtNRFv1ZuTQQS0zxPhsNa2ctCQNYVo14R5E5SF WHqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:reply-to:ironport-sdr :ironport-sdr; bh=lpsabQHBwv9A7sHhqJM+iS3H93za2zMGHnXD1xVqsn8=; b=fy7Vr75Q5hlEKyVwfQjo6AlPl0gCAov4xZQKqkH/PVhi1o69KNR0AnK6rGbP0ptEI2 xPTUQJ6Z/Yvq1oxamIWGnV9QaLbhFLjq6zIcB9Ig1jxGztT7qrZPW9ijOLQuUQk6iNso jOVDak58DEt/fq+Sjmnon1CMP+xSQ0qkc2F7yskVkJdE8hPCMe4ZYmdJ6dIo0D1w6kLZ ZdrvsTX3f+VUw0Vsx4rZX7xYgR2cZ9s3+CD2KgIFHB5BZ4MHo5tvzApObVNWcVasWvBV 58dNT8PFuj/2bIp8vOSbgwlfppf+010WLjfZ7ODRF7cAiDHhys3uON5TzbcTnzpR2Hwt c4Rg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si6203735edw.490.2020.05.04.07.12.27; Mon, 04 May 2020 07:12:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728861AbgEDOKF (ORCPT + 99 others); Mon, 4 May 2020 10:10:05 -0400 Received: from mga03.intel.com ([134.134.136.65]:36898 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbgEDOKF (ORCPT ); Mon, 4 May 2020 10:10:05 -0400 IronPort-SDR: h7pYE2A7n5zElFB4SrB6UYluG05dKdDC1EITlthQgnG9LJJmB7+77S1z0FaIcF8c+xqFlhPHTg 4rGVprbH+fLQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2020 07:10:04 -0700 IronPort-SDR: LRaJEeCip1QvSd7iFhaT3EMa6AFcu1oiy2kpCBSBxwI8r4Jkl44AF5/tolkUMFJwLqZ14O4QjU 9CrZmHwfuvTQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,352,1583222400"; d="scan'208";a="460677147" Received: from tthayer-hp-z620.an.intel.com (HELO [10.122.105.146]) ([10.122.105.146]) by fmsmga005.fm.intel.com with ESMTP; 04 May 2020 07:10:04 -0700 Reply-To: thor.thayer@linux.intel.com Subject: Re: [PATCH] i2c: altera: Remove superfluous error message in altr_i2c_probe() To: Aishwarya Ramakrishnan , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200503124833.15070-1-aishwaryarj100@gmail.com> From: Thor Thayer Message-ID: Date: Mon, 4 May 2020 09:10:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200503124833.15070-1-aishwaryarj100@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/3/20 7:48 AM, Aishwarya Ramakrishnan wrote: > The function platform_get_irq can log an error by itself. > This omit a redundant message for exception handling in the > calling function. > > Suggested by Coccinelle. > > Signed-off-by: Aishwarya Ramakrishnan > --- > drivers/i2c/busses/i2c-altera.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-altera.c b/drivers/i2c/busses/i2c-altera.c > index f5c00f903df3..af6985f0ae63 100644 > --- a/drivers/i2c/busses/i2c-altera.c > +++ b/drivers/i2c/busses/i2c-altera.c > @@ -395,10 +395,8 @@ static int altr_i2c_probe(struct platform_device *pdev) > return PTR_ERR(idev->base); > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(&pdev->dev, "missing interrupt resource\n"); > + if (irq < 0) > return irq; > - } > > idev->i2c_clk = devm_clk_get(&pdev->dev, NULL); > if (IS_ERR(idev->i2c_clk)) { > Reviewed-by: Thor Thayer