Use error_fatal to simplify obvious fatal errors (again)
commit50beeb680949117017343e593dd7323632a6d872
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:26 +0000 (17 10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (19 14:51 +0200)
treef31c97c58d73df363f17f6cbf2a874cfa48d6c05
parent4b5766488fd3549dc47a75331cf4db62f477536c
Use error_fatal to simplify obvious fatal errors (again)

Add a slight improvement of the Coccinelle semantic patch from commit
007b06578ab, 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>
hw/intc/xics_kvm.c
qemu-nbd.c
scripts/coccinelle/use-error_fatal.cocci [new file with mode: 0644]
vl.c