Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp68568pxb; Mon, 13 Sep 2021 13:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu4NvVJLJM7PLZTIbyc9RM0sNpAYkn8ISADPnYDlGQQktHzosYsG8km0l++4nxwKQcc1UU X-Received: by 2002:a05:6402:84e:: with SMTP id b14mr15183544edz.260.1631563776428; Mon, 13 Sep 2021 13:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631563776; cv=none; d=google.com; s=arc-20160816; b=c9ppx+CMcfCEDo//zA0l+ywhUbDnTpNajdQ0u0ftTRRVJA0Gpo9z/oWlz4mdiaBl6Y QHX/PbgmvltXpSAmXRjBjpsn0LzxSK4p1zsOX2gKVhC3Klqjj2aDOgAdsTxgIKQwhR3s 78xoU/6/lk4mkI0v0zyyebIOsZGytP05TiIfic1bsOeOpM/y0nv3UdmIYJF/cMjZaXhG 0r+/oAnuHmUaqN2ID7xmt3lrUO6EamuegTeZ+P8eLoirQn41g+hngk9NeCmC3moCtSzB z003GRKap6KZsDUoqB1JzngOFbf+QDz3fe7J1pYkCTrF/IrlsiwqXIAFY3J931jHJj3k Dr0w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4v5cedL3pKbsdzHi8zO69DjqQ1l188rbfaO9jzfFLxs=; b=CFIQSfNys+ObkIhkWEXrpOTQDmYeTujXpx3VWH/Ft1fvY5quHYWQF3mXdHy3cgL8n/ x/S6/wWO0MhZNrHpiPFYZ1OSkO1onqf5QxyQYZuLEnBrP53D/1ugRJdBfyM5brLHZUzM R7x3xCOdizN7xDkfriuY25mLqp3cHM9Xjmq9KCwqVXU4RmUv5uDtFO2wydOmctzviou+ +VXnlF6RsnLKcHtiyu6lpyO5ls/W2AusZi8h7KT4WDXTogxBc8wYFGgG8x0yzGoFaE7I N1NBiBlj+t2Nrjj8fAVVW5ImBrG7w+BzKL+m0Bj9+qMGyb90jctUDJkghJPWsN0jl6mh nfsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uTout6d3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si7871561edf.400.2021.09.13.13.09.12; Mon, 13 Sep 2021 13:09:36 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uTout6d3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243592AbhIMNtA (ORCPT + 99 others); Mon, 13 Sep 2021 09:49:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241195AbhIMNnA (ORCPT ); Mon, 13 Sep 2021 09:43:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 347886103B; Mon, 13 Sep 2021 13:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539829; bh=jLcLh8c/NEq7pvCPveQzMntmFVzY6a/dT7Ee7vJ1/vo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uTout6d3GYbykyIrPJn0ITMb0+kJJQ0ItWm7WSsZYdgtmGu9b/ktlDDzlMQYxZ+dp TVDgFOHnBUjaGoqrFIk152/FCTI1pahDolIJqmD8mBIbeDgh5Ze5wTbShInmgZHKbb 25TkkNuYuVyMjVpbBbaaTOfT+skqpvBHNTiGtNd4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tian Tao , Wolfram Sang , Sasha Levin Subject: [PATCH 5.10 178/236] i2c: fix platform_get_irq.cocci warnings Date: Mon, 13 Sep 2021 15:14:43 +0200 Message-Id: <20210913131106.422152357@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tian Tao [ Upstream commit 2478b9c1dcc9aa84cfd71ed7b5ca2a2c0ede75b7 ] Remove dev_err() messages after platform_get_irq*() failures. drivers/i2c/busses/i2c-hix5hd2.c:417:2-9: line 417 is redundant because platform_get_irq() already prints an error Signed-off-by: Tian Tao Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-hix5hd2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5hd2.c index ab15b1ec2ab3..c45f226c2b85 100644 --- a/drivers/i2c/busses/i2c-hix5hd2.c +++ b/drivers/i2c/busses/i2c-hix5hd2.c @@ -413,10 +413,8 @@ static int hix5hd2_i2c_probe(struct platform_device *pdev) return PTR_ERR(priv->regs); irq = platform_get_irq(pdev, 0); - if (irq <= 0) { - dev_err(&pdev->dev, "cannot find HS-I2C IRQ\n"); + if (irq <= 0) return irq; - } priv->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(priv->clk)) { -- 2.30.2