Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1055647ybc; Tue, 19 Nov 2019 13:45:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzLNXz58S9nvyfNZxkFQSOd9eiquQkqbOhxpOu4MNnrioIr8vqHydOKUmKYP2RfKj10k4Q7 X-Received: by 2002:a17:906:6dc2:: with SMTP id j2mr25315591ejt.140.1574199939824; Tue, 19 Nov 2019 13:45:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574199939; cv=none; d=google.com; s=arc-20160816; b=dHKVAtQteMimguDHum0w03i74jeyfz7FXeTVwSqJdnY489nuRaZjtV3GN1pxkHG5MG K+TEQF2Nu3zv0NWT8D1C37goD39aNMAZJpzrE6kHllpapIV/f+tbsXSE79g47uwCQ9kc 3d3uBb45NPeou3+DRk4sEX4A3KlG972rFSALYRSz07aqUpQZ/hs/xPHnAZbZDbuNzFoZ a1AlLJdVUmz5VSRUg6pI/ETYHjvW8/o2KE+rq2sYUwqcd1oXHlgsh6DhA+YDUHTJPFwU HsnlkbWwjx49oj9DGxt1j2i2HCQU5W0EPuQV13Pm2QI8hZKGBBfUa4RAPJzeH9y5GPwn DBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=U/jEVovwHRkQoLoWqEl7biz+vuhRjL6Z/Bpji6Sqzg4=; b=xgAvNn6hqTwvarpyVprL2ENreFll+HRBLxqGyYeSH9TQe/CLmtKzXgo77DypOMCwxX bhqK+OIu68ZPt03AuSPBHPi3A7w9h1Z8fD+Kku+VFX2+o77Z+dwVPUCoXlEqcaSY+6ZV VSceRc387bRPbd64a6Op2CMwNMMXAISRMdgetHyTgrYuFajofGwKOvcWOxscl28m0RnD xygNWMmSwRvKs3VBFOf/z/izd5davDXE+RAHUxUZnTxaYS0etub/SQDqCt3WGgde5gFP Ghcq4GgzcJQ3vGav7muKSbX02qwWDhM5wyi5MeWaQsHXM/LeNl6TGmTy7E86tJ81Uyr+ my4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si15385905ejx.248.2019.11.19.13.45.14; Tue, 19 Nov 2019 13:45:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbfKSVoL (ORCPT + 99 others); Tue, 19 Nov 2019 16:44:11 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:37891 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfKSVoI (ORCPT ); Tue, 19 Nov 2019 16:44:08 -0500 X-IronPort-AV: E=Sophos;i="5.69,219,1571695200"; d="scan'208";a="412575415" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 19 Nov 2019 22:44:04 +0100 From: Julia Lawall To: Masahiro Yamada Cc: kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: [PATCH 3/4 v2] coccinelle: platform_get_irq: allow multiple dev_errs Date: Tue, 19 Nov 2019 22:08:24 +0100 Message-Id: <1574197705-31132-4-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1574197705-31132-1-git-send-email-Julia.Lawall@lip6.fr> References: <1574197705-31132-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow multiple calls to dev_err in the if branch under the call to the platform_get_irq function. Remove only the first one. Signed-off-by: Julia Lawall --- v2: no change scripts/coccinelle/api/platform_get_irq.cocci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coccinelle/api/platform_get_irq.cocci b/scripts/coccinelle/api/platform_get_irq.cocci index 7ac32ee..e5d04fb 100644 --- a/scripts/coccinelle/api/platform_get_irq.cocci +++ b/scripts/coccinelle/api/platform_get_irq.cocci @@ -70,7 +70,7 @@ if ( \( ret < 0 \| ret <= 0 \) ) ... -dev_err(...); ) -... +... when any } @r depends on org || report@