[PATCH] Coccinelle: zalloc-simple: Delete duplicate specifications of the key word "expression"

From: SF Markus Elfring
Date: Fri Jan 19 2018 - 10:19:57 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jan 2018 16:00:22 +0100

Reduce the file size a bit by removing 12 specifications of the
key word "expression" in this script for the semantic patch language.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
scripts/coccinelle/api/alloc/zalloc-simple.cocci | 36 ++++++++----------------
1 file changed, 12 insertions(+), 24 deletions(-)

diff --git a/scripts/coccinelle/api/alloc/zalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc-simple.cocci
index 92b20913055f..a8a530696a5e 100644
--- a/scripts/coccinelle/api/alloc/zalloc-simple.cocci
+++ b/scripts/coccinelle/api/alloc/zalloc-simple.cocci
@@ -28,8 +28,7 @@ virtual report

@depends on context@
type T, T2;
-expression x;
-expression E1;
+expression x,E1;
statement S;
@@

@@ -46,8 +45,7 @@ statement S;

@depends on patch@
type T, T2;
-expression x;
-expression E1,E2,E3,E4;
+expression x,E1,E2,E3,E4;
statement S;
@@

@@ -151,8 +149,7 @@ statement S;

@r depends on org || report@
type T, T2;
-expression x;
-expression E1,E2;
+expression x,E1,E2;
statement S;
position p;
@@
@@ -181,8 +178,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r1 depends on org || report@
type T, T2;
-expression x;
-expression E1;
+expression x,E1;
statement S;
position p;
@@
@@ -211,8 +207,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r2 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3,E4;
+expression x,E1,E2,E3,E4;
statement S;
position p;
@@
@@ -241,8 +236,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r3 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3;
+expression x,E1,E2,E3;
statement S;
position p;
@@
@@ -271,8 +265,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r4 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3;
+expression x,E1,E2,E3;
statement S;
position p;
@@
@@ -301,8 +294,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r5 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2;
+expression x,E1,E2;
statement S;
position p;
@@
@@ -331,8 +323,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r6 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3;
+expression x,E1,E2,E3;
statement S;
position p;
@@
@@ -361,8 +352,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r7 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2;
+expression x,E1,E2;
statement S;
position p;
@@
@@ -391,8 +381,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r8 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3;
+expression x,E1,E2,E3;
statement S;
position p;
@@
@@ -420,8 +409,7 @@ coccilib.report.print_report(p[0], msg)
//-----------------------------------------------------------------
@r9 depends on org || report@
type T, T2;
-expression x;
-expression E1,E2,E3;
+expression x,E1,E2,E3;
statement S;
position p;
@@
--
2.15.1