mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
![Markus Armbruster](/assets/img/avatar_default.png)
Add a slight improvement of the Coccinelle semantic patch from commit
007b06578a
, and use it to clean up. It leaves dead Error * variables
behind, cleaned up manually.
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Cc: Eric Blake <eblake@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20181017082702.5581-3-armbru@redhat.com>
21 lines
350 B
Plaintext
21 lines
350 B
Plaintext
@@
|
|
type T;
|
|
identifier FUN, RET;
|
|
expression list ARGS;
|
|
expression ERR, EC, FAIL;
|
|
@@
|
|
(
|
|
- T RET = FUN(ARGS, &ERR);
|
|
+ T RET = FUN(ARGS, &error_fatal);
|
|
|
|
|
- RET = FUN(ARGS, &ERR);
|
|
+ RET = FUN(ARGS, &error_fatal);
|
|
|
|
|
- FUN(ARGS, &ERR);
|
|
+ FUN(ARGS, &error_fatal);
|
|
)
|
|
- if (FAIL) {
|
|
- error_report_err(ERR);
|
|
- exit(EC);
|
|
- }
|