mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
coccinelle: drop empty-if.cocci script
It doesn't work, spits out only rubbish and was already excluded of run-coccinelle.sh. It's a pitty it doesn't work, but let's drop this dead piece of code for now.
This commit is contained in:
parent
f09eb7688e
commit
4384284655
@ -1,56 +0,0 @@
|
||||
@@
|
||||
expression e, f, g, h, i, j;
|
||||
statement s, t;
|
||||
@@
|
||||
(
|
||||
if (e) {
|
||||
(
|
||||
if (h) s
|
||||
|
|
||||
if (h) s else t
|
||||
|
|
||||
while (h) s
|
||||
|
|
||||
for (h; i; j) s
|
||||
)
|
||||
}
|
||||
|
|
||||
while (e) {
|
||||
(
|
||||
if (h) s
|
||||
|
|
||||
if (h) s else t
|
||||
|
|
||||
while (h) s
|
||||
|
|
||||
for (h; i; j) s
|
||||
)
|
||||
}
|
||||
|
|
||||
for (e; f; g) {
|
||||
(
|
||||
if (h) s
|
||||
|
|
||||
if (h) s else t
|
||||
|
|
||||
while (h) s
|
||||
|
|
||||
for (h; i; j) s
|
||||
)
|
||||
}
|
||||
|
|
||||
- if (e) {
|
||||
+ if (e)
|
||||
s
|
||||
- }
|
||||
|
|
||||
- while (e) {
|
||||
+ while (e)
|
||||
s
|
||||
- }
|
||||
|
|
||||
- for (e; f; g) {
|
||||
+ for (e; f; g)
|
||||
s
|
||||
- }
|
||||
)
|
@ -1,7 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
for SCRIPT in ${@-*.cocci} ; do
|
||||
[ "$SCRIPT" = "empty-if.cocci" ] && continue
|
||||
echo "--x-- Processing $SCRIPT --x--"
|
||||
TMPFILE=`mktemp`
|
||||
spatch --sp-file $SCRIPT --dir $(pwd)/.. 2> "$TMPFILE" || cat "$TMPFILE"
|
||||
|
Loading…
Reference in New Issue
Block a user