repo.or.cz
/
qemu
/
rayw.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
semihosting: Create semihost_sys_poll_one
[qemu/rayw.git]
/
scripts
/
coccinelle
/
use-error_fatal.cocci
blob
10fff0aec4ca86dccc47f457448e5e057eae14fb
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
- }