From ece174c5439021e32ebcc858842de9586072c006 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 8 Sep 2015 23:03:38 +0200 Subject: tree-wide: drop {} from one-line if blocks Patch via coccinelle. --- coccinelle/empty-if.cocci | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 coccinelle/empty-if.cocci (limited to 'coccinelle') diff --git a/coccinelle/empty-if.cocci b/coccinelle/empty-if.cocci new file mode 100644 index 0000000000..ebd0bfddce --- /dev/null +++ b/coccinelle/empty-if.cocci @@ -0,0 +1,19 @@ +@@ +expression e, f; +statement s, t; +@@ +( +if (e) { +if (f) s +} +| +if (e) { +if (f) s +else t +} +| +- if (e) { ++ if (e) +s +- } +) -- cgit v1.2.3-54-g00ecf