[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1574197705-31132-4-git-send-email-Julia.Lawall@lip6.fr>
Date: Tue, 19 Nov 2019 22:08:24 +0100
From: Julia Lawall <Julia.Lawall@...6.fr>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: kernel-janitors@...r.kernel.org,
Gilles Muller <Gilles.Muller@...ia.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
Michal Marek <michal.lkml@...kovi.net>, cocci@...teme.lip6.fr,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/4 v2] coccinelle: platform_get_irq: allow multiple dev_errs
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 <Julia.Lawall@...6.fr>
---
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@
Powered by blists - more mailing lists