Skip to contentSkip to conversation

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

PATCH New SF Markus Elfring 1 participant 1 message Jan 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Coccinelle: zalloc-simple: Delete duplicate specifications of the key word "expression"

From: Markus Elfring <[email protected]>
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.

---
 scripts/coccinelle/api/alloc/zalloc-simple.cocci | 36 ++++++++----------------
 1 file changed, 12 insertions(+), 24 deletions(-)
scripts/coccinelle/api/alloc/zalloc-simple.cocci +12 -24
index 92b20913055f..a8a530696a5e 100644
@@ -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;
 @@
Signature · 1 line
2.15.1