Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp704522ybz; Wed, 15 Apr 2020 17:06:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLdbhxZiOWWZ6+ie72B3oodqTVkXUL5+7S+7R5GEK1ElrkTfVhG3WDe+9NjQ0rLnCAuTc/9 X-Received: by 2002:a50:ba83:: with SMTP id x3mr7300495ede.193.1586995599665; Wed, 15 Apr 2020 17:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995599; cv=none; d=google.com; s=arc-20160816; b=Y1Kvg5w4p8fiEuowPbzfu7hN39VUcgZi36jrfx6JCNnrq6VW5SjyHPtPXNTYzMODRr XqhrwcRBRNnKYOKig3PKe8ShqLQ75vfpXSbRiNnym5/VarMo9/Hyqb9r2H8rIsjdEGGa ZoscWctevoHNHFwDE+H7zLiJvXduC42JnpAgNYi0mrFchAEA/ne95u+J44Ni8Rs2yfcF jI7C9ESb0s/TWlYSu19UjG4qvy1lz4BhKBsTbkNnTt78TfxPTFNpjAtsaLBYV/A1ixTg fasI6dPmM3J9o1naQjQxhP6K7PwZwjgu+UajnNqyM83Yckz0juOichFIh7mlEq4Jx70Z DZTw== 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:mime-version :message-id:date:subject:cc:to:from; bh=fIgBws7KZciZSiLkkkFW/320AqzbtH3X9Hr/y1nbATc=; b=hmoeOIybKsmN35nEg0pUn1Vavs13mQ0q6mxT2oCSde8ztRzp0mpCUEUzEOiR7QyhzD tbzAl4AlCVTOgNAKh/4zDvCEbLbaiMu2wOOTFwykG7fxVqjZSm0/H9INK38DHvs0o0e5 0HlD7CdLiIaZwCKBfMQgUbD4CEwZDDBscTrhoRlwUTVBVU97yFho7tZKJjxX/5iUVe9J p2Y7ub2szKCsu4t7VBEvNx1CzVxTJpGqhPsh1bYJbnfFXS4hzINHNR6I7MJh8RlCA8Ei V85zeSefrj0xcwtOeKHonLz2BVzzd39Bo/zlLGC7UMvzf5TiDYP1pMWLoaWbrdnLFN/m 5unA== 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 dm19si11126350edb.223.2020.04.15.17.06.16; Wed, 15 Apr 2020 17:06:39 -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 S2636333AbgDON4M (ORCPT + 99 others); Wed, 15 Apr 2020 09:56:12 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:11704 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633760AbgDON4I (ORCPT ); Wed, 15 Apr 2020 09:56:08 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.13]) by rmmx-syy-dmz-app07-12007 (RichMail) with SMTP id 2ee75e9712678c0-6db47; Wed, 15 Apr 2020 21:55:51 +0800 (CST) X-RM-TRANSID: 2ee75e9712678c0-6db47 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.3.208.246]) by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee75e971263816-b78f1; Wed, 15 Apr 2020 21:55:51 +0800 (CST) X-RM-TRANSID: 2ee75e971263816-b78f1 From: Tang Bin To: wsa@the-dreams.de, o.rempel@pengutronix.de, u.kleine-koenig@pengutronix.de, ardb@kernel.org Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tang Bin , Shengju Zhang Subject: [PATCH] i2c: drivers: Omit superfluous error message in efm32_i2c_probe() Date: Wed, 15 Apr 2020 21:57:34 +0800 Message-Id: <20200415135734.14660-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the function efm32_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 Signed-off-by: Shengju Zhang --- drivers/i2c/busses/i2c-efm32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c index a8c6323e7..4de31fae7 100644 --- a/drivers/i2c/busses/i2c-efm32.c +++ b/drivers/i2c/busses/i2c-efm32.c @@ -352,7 +352,6 @@ static int efm32_i2c_probe(struct platform_device *pdev) ret = platform_get_irq(pdev, 0); if (ret <= 0) { - dev_err(&pdev->dev, "failed to get irq (%d)\n", ret); if (!ret) ret = -EINVAL; return ret; -- 2.20.1.windows.1