From a1ebc3d860a033b693ee018a0c30099669bb3d54 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 15 Oct 2022 10:35:39 +0200 Subject: [PATCH] cocci: remove action check as we no longer use macros (cherry picked from commit 34ee53e5ec1cdefe574bdfee55ef674217997ea9) --- qa/coccinelle/Makefile.am | 1 - qa/coccinelle/action-pkt.cocci | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 qa/coccinelle/action-pkt.cocci diff --git a/qa/coccinelle/Makefile.am b/qa/coccinelle/Makefile.am index 36f2724b7f..1f78a74b72 100644 --- a/qa/coccinelle/Makefile.am +++ b/qa/coccinelle/Makefile.am @@ -1,5 +1,4 @@ EXTRA_DIST= access-pkt-packet.cocci \ - action-pkt.cocci \ banned-functions.cocci \ direct-packet.cocci \ malloc-error-check.cocci \ diff --git a/qa/coccinelle/action-pkt.cocci b/qa/coccinelle/action-pkt.cocci deleted file mode 100644 index 1392d5e8ef..0000000000 --- a/qa/coccinelle/action-pkt.cocci +++ /dev/null @@ -1,15 +0,0 @@ -@action@ -typedef Packet; -Packet *p; -position p1; -@@ - -p->action@p1 - -@ script:python @ -p1 << action.p1; -@@ - -print("Invalid usage of p->action, please use macro at %s:%s" % (p1[0].file, p1[0].line)) -import sys -sys.exit(1) -- 2.47.2