Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4989249pxu; Tue, 22 Dec 2020 05:59:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9ewk3pBUO9JISFmG88DXxHfBzP8FcymuV72kPlm1dpQFoNK3grZDu67aP64JZfxBhe2QS X-Received: by 2002:a17:906:2b50:: with SMTP id b16mr19405303ejg.255.1608645576087; Tue, 22 Dec 2020 05:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608645576; cv=none; d=google.com; s=arc-20160816; b=WFPm3LtgP5sCRwn93mpwraFYczRPnLAyAfJP25aQUzcB/gUw7aaB7Wch2lin7xWWWq CDteLt7FHKRgrzsNpIkiAU5AyYNvAyKlahypStagqhxrLaDF65hM1IC2GTxXOvGBKugJ TRJQUUhYdYwGc7KLAEl7mSNUCFxlBfcAtxgfia+oRuVIUtlOri99N+/MJlB00OCV6cj1 Lfhr6QavTcRrzzdp2UOyEqRPvYowxwk3WmsIberThD2NGXOFyVqklswY1W1RmPUgjXvf rKgDAgThU6pIYaghPCuAzD+8y9AREIN5XCGVHkFMJMrOlm9n323zWGxwXwI3eYyeSA4n 1h7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:to:from:cc:subject:references :in-reply-to:content-transfer-encoding:mime-version:dkim-signature; bh=vf3KMJFXoJJKakYmxx9o3MdmYFq9toVlSfBBfvsbZQ4=; b=XwTWwHIdZfptVl8qrZIj3a/8FYGq8eovQYfPrjNfgHBjubpIzPyz5he9gM6d73FMh+ WSVbLMcL+ItiXEi4sbnjrUdW5XJP7JEY/nr1R/XkXgkYWjyWwkWdyo0/yP1e7YLFIb/c dqcY0gLqjfT9to6PhE4ZXDdIoLNR41gSWFeG1B9fbgq50gYBLiGYcvn3zRFErfkyAInQ 3ZkgYuRKhM8+wORIOJIHGeAiG4Y12KD/jCLCn2yqeY9AHTAVuOAPwY6BNPvr8I9cYKzY C/wXcfPTse/y5GDZq8tm0khw3iqKIKk/XI78tDE7xlMAsTVeynZJoIYQO0tfVjNmYoS1 k4pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PsS36EIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si2646163eja.488.2020.12.22.05.59.16; Tue, 22 Dec 2020 05:59:36 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PsS36EIR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727149AbgLVN44 (ORCPT + 99 others); Tue, 22 Dec 2020 08:56:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:49528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbgLVN4z (ORCPT ); Tue, 22 Dec 2020 08:56:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A64D823105; Tue, 22 Dec 2020 13:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608645375; bh=pJ1KImqJ9x4u3eL+ScCaXOa20iAVRMRCF+VTZWc4YbI=; h=In-Reply-To:References:Subject:Cc:From:To:Date:From; b=PsS36EIRCygCk1fZ4DIajuw9lnfvHq7XQa6gHstxIgpYzPtB0bHptnUTus4gxrdGz 865otr/4IS9IAeD/8BMGPX9nNe4i2XEVMifMtDunmx681hS0OjON2EEf5+u/9z/6P+ 9/32k6WR6OzyrLWTbXmdlUzcuqHEN0LpQcSpZcidLXDukWVnxwLTu+EvDr61ao0Vrw sr0cMdJ3QA1oCnsc93qHIUiYqhSfK34nQPdKvFeZs7vOdz4ROlOdcMBQ/keoJ3aygi Y6PH4UeW8E+nuxeExux5JYVf/R3f2CUN3R6wE4bxmIzsOiqnQAc/XR5W4SQlrJ/4/s B8CK4GeFpYW0g== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1607946280-42445-1-git-send-email-tiantao6@hisilicon.com> References: <1607946280-42445-1-git-send-email-tiantao6@hisilicon.com> Subject: Re: [PATCH] crypto: inside-secure - fix platform_get_irq.cocci warnings Cc: linux-crypto@vger.kernel.org From: Antoine Tenart To: Tian Tao , davem@davemloft.net, herbert@gondor.apana.org.au Message-ID: <160864537192.1448242.7324361895608959161@kwain.local> Date: Tue, 22 Dec 2020 14:56:12 +0100 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello, Quoting Tian Tao (2020-12-14 12:44:40) > 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 >=20 > Generated by: scripts/coccinelle/api/platform_get_irq.cocci >=20 > Signed-off-by: Tian Tao Acked-by: Antoine Tenart Thanks! Antoine > --- > drivers/crypto/inside-secure/safexcel.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) >=20 > diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/ins= ide-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, i= nt irqid, > dev =3D &plf_pdev->dev; > irq =3D platform_get_irq_byname(plf_pdev, irq_name); > =20 > - 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; > } > --=20 > 2.7.4 >=20