From patchwork Thu Apr 16 13:53:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tang Bin X-Patchwork-Id: 207698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99CA0C2BB85 for ; Thu, 16 Apr 2020 15:07:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 805BA20774 for ; Thu, 16 Apr 2020 15:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730484AbgDPPHO (ORCPT ); Thu, 16 Apr 2020 11:07:14 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:47501 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392425AbgDPNvu (ORCPT ); Thu, 16 Apr 2020 09:51:50 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee65e9862d6afc-86b80; Thu, 16 Apr 2020 21:51:21 +0800 (CST) X-RM-TRANSID: 2ee65e9862d6afc-86b80 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.1.173.7]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85e9862d5013-68f46; Thu, 16 Apr 2020 21:51:20 +0800 (CST) X-RM-TRANSID: 2ee85e9862d5013-68f46 From: Tang Bin To: wsa@the-dreams.de, manivannan.sadhasivam@linaro.org, thor.thayer@linux.intel.com, rrichter@marvell.com, bjorn.andersson@linaro.org Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] i2c: busses: Omit superfluous error message in img_i2c_probe() Date: Thu, 16 Apr 2020 21:53:02 +0800 Message-Id: <20200416135302.13740-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org In the function img_i2c_probe(), when get irq failed, the function platform_get_irq() logs an error message, so remove redundant message here. Signed-off-by: Tang Bin --- drivers/i2c/busses/i2c-img-scb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c index c937ea7..98a8930 100644 --- a/drivers/i2c/busses/i2c-img-scb.c +++ b/drivers/i2c/busses/i2c-img-scb.c @@ -1342,10 +1342,8 @@ static int img_i2c_probe(struct platform_device *pdev) return PTR_ERR(i2c->base); irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(&pdev->dev, "can't get irq number\n"); + if (irq < 0) return irq; - } i2c->sys_clk = devm_clk_get(&pdev->dev, "sys"); if (IS_ERR(i2c->sys_clk)) {