From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932296AbeASPTx (ORCPT ); Fri, 19 Jan 2018 10:19:53 -0500 Received: from mout.web.de ([217.72.192.78]:59394 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964AbeASPTn (ORCPT ); Fri, 19 Jan 2018 10:19:43 -0500 To: cocci@systeme.lip6.fr, Gilles Muller , Himanshu Jha , Julia Lawall , Masahiro Yamada , Michal Marek , Nicolas Palix From: SF Markus Elfring Subject: [PATCH] Coccinelle: zalloc-simple: Delete duplicate specifications of the key word "expression" Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <081fc0aa-2394-47c4-11fa-c615a429bc0d@users.sourceforge.net> Date: Fri, 19 Jan 2018 16:19:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:CrbkJ+JP/0YD7NCS9K9ws+mcUgxiO6bW3W2UDos6UfY403tNCI1 CNCpyFHRQLOA1shhYSq/GJ/TFTA9nlh5XuzO97f+L0y78GQg33iC8lKLU7XSKBuwVwCS94Q ibjzeAQCKRkTbniKOksijNmrB+l+TLldaHtq/hZYvMlj0FTd3VNvRI5G7nGMLjO/JWQDJuT n4X32kdLMEAvTvdjPJ7cw== X-UI-Out-Filterresults: notjunk:1;V01:K0:A8Sui0usZ9k=:UrxZF95A7t/SYd6vM83UwF +/PNw/zjJy2sXzQxbpSX2fb6Y3EgwpgyS9XUUzMCjWiKI8atjiRLqZGRbY5lcEbyy518piDCB y+7GhuHr2QiHIde/nUBq/L8RT+LoKAtE2HgqejccrF8zX4Z3WkBp/Ri7Qe4TgNJF8qIGDLwU1 QmHXEfn4P9XVxHMowWdOPbg2BAbJwcsvJfoycRjvaSdI9lJFeZuLpVJgWLpgL655M07zLN5kO DvazGBPu8iGIokmntn0KQcsj6IxULMHhxKw+WavUKAX1D6YTzk7qkCYjUwUzyZ+Nlby74pvLm BaTxsdszj5MAbbifqOeUuHdCPdrzkdfxRa+2GSupeyLfxKJ08ZDebMijLh+8VgNHKi2GPGYfj 5jkkV0bFGas2pfPAFO3i10PDFhfkdMPyTNagJwyIPgDyEqn1isCqbqqWfksIcNqwUkrr2+vcg BEBORkQZddFiHNnB0FNKzrKjPdDcck7pdMwuj3GywqJ9xuhEo9ZI9hwJv6neAf1gzqYHcaW+E SCkZ6EyujA5b788TihbI2ZlDXAwvujvoI+V5ngMq2o/A0gfiLnyc/inQXHKiqFQBhYTrlc2jp HfBMk5wtpaGJLl3GiHLhwvOuTFnbF/cYEbalaA9RTBEByyq/Ow+0QBCLiA52a4l2mAGa+lD1K 2ZR9K4Dn5VufsHIoK14YtZksB/BXytVlE83j2ZHI/LAIyfzB650//ACC5AExhSE5nnCFIgkBU 2mHZ7KwGamZX9CwiOWsq9FPQzETb5EPfUUe+IraHj99nPaMFFwG3/qiznCoFNMkXHlk0MuFSW b/nRiLsoW2jetXu17xgs4Ur+Xg7kSuZBuuRFyMFdo0GLfzLQLw= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring 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 --- 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