]> git.proxmox.com Git - mirror_qemu.git/blob - scripts/coccinelle/use-error_fatal.cocci
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.0-20190219' into staging
[mirror_qemu.git] / scripts / coccinelle / use-error_fatal.cocci
1 @@
2 type T;
3 identifier FUN, RET;
4 expression list ARGS;
5 expression ERR, EC, FAIL;
6 @@
7 (
8 - T RET = FUN(ARGS, &ERR);
9 + T RET = FUN(ARGS, &error_fatal);
10 |
11 - RET = FUN(ARGS, &ERR);
12 + RET = FUN(ARGS, &error_fatal);
13 |
14 - FUN(ARGS, &ERR);
15 + FUN(ARGS, &error_fatal);
16 )
17 - if (FAIL) {
18 - error_report_err(ERR);
19 - exit(EC);
20 - }