Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2603978pxu; Mon, 14 Dec 2020 06:40:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPRv6KPzSqFUG+Yz0uNVCZGmp4L92kXZvdxU5VMqs7lNC3Vv5AgX0AYY/lWjZM2D1FlMzG X-Received: by 2002:a17:906:8292:: with SMTP id h18mr23312107ejx.481.1607956849539; Mon, 14 Dec 2020 06:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607956849; cv=none; d=google.com; s=arc-20160816; b=L6KvbdzNyuM5k/470rocyMeQP++rcvvkW/fJnu6zytGhZPd8jTlcEiAzoUIPaRGUw9 cE0SCwOnFNc5lmK+Gp1MXygKwikbHymFAbbRR4Sylkzvk3LexuVnz8tKrfSWN2Enre1l lt5MH4tORNMqpV5qB0a2Q1sUmWFaOf6ulp3YYJd+BEGT8wtQ0/8rgUXKpy3DntbR2dtC v4F6NNIH7sl4hotGHOCUUqm8sXtZY+PGOYyLS5nw5dVZ0671V0TD4tGAzyi+Wr7IUW3Y Mi8V9Cwlv4UlHjFI/IwlxY3N7BiFnzrAYDQ/2YmzS1O/nAdFIjhDFMK16LOXU8XNsRD0 scSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Bf139Faob7jiUbDocTkfUIdeHQo6kmukV0CijutPChI=; b=kTPewaW94HV7HpxCIpgWxR9VrdR8Wn5+LLjQz3tKtlBq13UMZYWwAwvEmI4QbxL7vg Bs5NFsPaoQblN5+YW8ajaYUTAhewCJl04MpeXoLsc227jJt+5mi885l1ni7i8SNdhk09 cZg+sj1i2FGiD2UVANpIYZLHyKiBnWKkHg1syNxtdJoEzmLDBX6Ad/OMBkqMZz5YILNa r64qRo/FeEtLB/aM3AnXrQ+KZQKLJpEBAtWvTLFAHVWlknq0NfDoC7WGR8yPXW0wdv5f YcIQEau89dsHtEFZGbPXk6COiMO2Jbv3gmaSEk8tOdRbS3Gip96fam+Pt19zRQxmdjwi C9aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 d7si9429667ejk.78.2020.12.14.06.40.15; Mon, 14 Dec 2020 06:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727632AbgLNLpR (ORCPT + 99 others); Mon, 14 Dec 2020 06:45:17 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9171 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393079AbgLNLpQ (ORCPT ); Mon, 14 Dec 2020 06:45:16 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Cvfg24Clqz15dcR; Mon, 14 Dec 2020 19:43:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Mon, 14 Dec 2020 19:44:30 +0800 From: Tian Tao To: , , CC: Subject: [PATCH] crypto: inside-secure - fix platform_get_irq.cocci warnings Date: Mon, 14 Dec 2020 19:44:40 +0800 Message-ID: <1607946280-42445-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Remove dev_err() messages after platform_get_irq*() failures. drivers/crypto/inside-secure/safexcel.c: line 1161 is redundant because platform_get_irq() already prints an error Generated by: scripts/coccinelle/api/platform_get_irq.cocci Signed-off-by: Tian Tao --- drivers/crypto/inside-secure/safexcel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c index 2e15621..efabc44bf 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1166,11 +1166,8 @@ static int safexcel_request_ring_irq(void *pdev, int irqid, dev = &plf_pdev->dev; irq = platform_get_irq_byname(plf_pdev, irq_name); - if (irq < 0) { - dev_err(dev, "unable to get IRQ '%s' (err %d)\n", - irq_name, irq); + if (irq < 0) return irq; - } } else { return -ENXIO; } -- 2.7.4