]> Git Repo - qemu.git/blame - scripts/coccinelle/cpu_restore_state.cocci
Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180427-pull-request' into...
[qemu.git] / scripts / coccinelle / cpu_restore_state.cocci
CommitLineData
65255e8e
AB
1// Remove unneeded tests before calling cpu_restore_state
2//
3// spatch --macro-file scripts/cocci-macro-file.h \
4// --sp-file ./scripts/coccinelle/cpu_restore_state.cocci \
5// --keep-comments --in-place --use-gitgrep --dir target
6@@
7expression A;
8expression C;
9@@
10-if (A) {
11 cpu_restore_state(C, A);
12-}
13@@
14expression A;
15expression C;
16@@
17- cpu_restore_state(C, A);
18- cpu_loop_exit(C);
19+ cpu_loop_exit_restore(C, A);
This page took 0.05719 seconds and 4 git commands to generate.