]> Git Repo - qemu.git/blob - scripts/coccinelle/use-error_fatal.cocci
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[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 -    }
This page took 0.025704 seconds and 4 git commands to generate.