mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
![Eduardo Habkost](/assets/img/avatar_default.png)
error_propagate() already ignores local_err==NULL, so there's no need to check it before calling. Coccinelle patch used to perform the changes added to scripts/coccinelle/error_propagate_null.cocci. Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1465855078-19435-2-git-send-email-ehabkost@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
11 lines
180 B
Plaintext
11 lines
180 B
Plaintext
// error_propagate() already ignores local_err==NULL, so there's
|
|
// no need to check it before calling.
|
|
|
|
@@
|
|
identifier L;
|
|
expression E;
|
|
@@
|
|
-if (L) {
|
|
error_propagate(E, L);
|
|
-}
|