From patchwork Sun Nov 6 14:12:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 16144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1522555wru; Sun, 6 Nov 2022 06:34:33 -0800 (PST) X-Google-Smtp-Source: AMsMyM5IeLpczQXWJjlPftC42Ml9I0WU2dc+Wb4gXOvAvrkRTie8dVmQR/oTRajeoTQKtmfQh3hI X-Received: by 2002:a05:6402:35cb:b0:462:6545:5d99 with SMTP id z11-20020a05640235cb00b0046265455d99mr45902197edc.51.1667745273256; Sun, 06 Nov 2022 06:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667745273; cv=none; d=google.com; s=arc-20160816; b=Bnt0g+GHOjzb0b97X6frfOBPuiZMye6n/5ZM4svQpMykLHKP5+dGPUe38BNuN2HU56 J5fgOlFekGlPMlgjQrJ9g0N5WHZ8Hmqr9xU/kv2T44xgyqWFTzmyAx5UJZhCXn6SOpfW BTCMmZQsHxgrKikbPkfuhiNU9i3FR0lH5CNFxXnxtC1GzIMh2VKU/0sThdfWSjRuHvk3 P31oteAd0zpuAVv1d5bPbIbKfA/GxmEyJmaN516C4tKvG+CZkv4YNfaw4b2fbcs3J3+n SJvH8L7TSUysdmgawyFH1oduiHjdjAjh30rfzktjXOfTiBPyLtgJme/rstvXMKbt91bf 8mXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=y6IcQCI9CRcPw/wiqMfx58Nwe647E6eSeBsnj1m6dHE=; b=cch02UWAC3OmNYJ4tWZfy7sNZ9/2h5OcOtEWcT1KWvCc8Wi8EMYpaB4d5jpx3vwxub /CqlyJysAnuiaJRPFHH3jvh914BkiACuSWaADYt2DtPcdt2AzyPOelTsJzNJ4IirCSXq lCsSnSZfrtZLwgGABe/ZRiDgiHyeQXIQooJLA4EyaXJLt1D5vr4WE/WeyAkV7kz/ITY+ B3vHyM7xuaLwz5ueV8XpzRHOpiSHZ/usM13MyIabxnSRx6iV5LnITJ/0mhvSc79d2AMV ilK3lZK9jfqUHyBvPRBDhnorXkA0H2BxqSiDh3KGLXjk9pS0LBFETNEgs+moqq+PFfeD guVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a1709064ac100b0077082e784easi4299746ejt.957.2022.11.06.06.34.07; Sun, 06 Nov 2022 06:34:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbiKFORB (ORCPT + 99 others); Sun, 6 Nov 2022 09:17:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbiKFORA (ORCPT ); Sun, 6 Nov 2022 09:17:00 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25741B1DC; Sun, 6 Nov 2022 06:16:58 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 6 Nov 2022 22:12:12 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.29] Date: Sun, 6 Nov 2022 22:12:12 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: thierry.reding@gmail.com, jonathanh@nvidia.com, sumitg@nvidia.com Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc/tegra: cbb: Remove unnecessary print function dev_err() X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <564ff856.bc.1844d48df8a.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXq+G8wGdjD4sBAA--.48W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQACB2FEYx0CxQADsb X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748757667578168468?= X-GMAIL-MSGID: =?utf-8?q?1748757667578168468?= Eliminate the follow coccicheck warning: ./drivers/soc/tegra/cbb/tegra-cbb.c:142:3-10: line 142 is redundant because platform_get_irq() already prints an error ./drivers/soc/tegra/cbb/tegra-cbb.c:152:2-9: line 152 is redundant because platform_get_irq() already prints an error Signed-off-by: KaiLong Wang --- drivers/soc/tegra/cbb/tegra-cbb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soc/tegra/cbb/tegra-cbb.c b/drivers/soc/tegra/cbb/tegra-cbb.c index d200937353c7..33e261301132 100644 --- a/drivers/soc/tegra/cbb/tegra-cbb.c +++ b/drivers/soc/tegra/cbb/tegra-cbb.c @@ -139,7 +139,6 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq, if (num_intr == 2) { irq = platform_get_irq(pdev, index); if (irq <= 0) { - dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq); return -ENOENT; } @@ -149,7 +148,6 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq, irq = platform_get_irq(pdev, index); if (irq <= 0) { - dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq); return -ENOENT; }