]> git.ipfire.org Git - thirdparty/qemu.git/commit - bootdevice.c
error: Remove NULL checks on error_propagate() calls
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 13 Jun 2016 21:57:56 +0000 (18:57 -0300)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 20 Jun 2016 14:38:13 +0000 (16:38 +0200)
commit621ff94d5074d88253a5818c6b9c4db718fbfc65
tree471a14faadcea9b57a834801610e2079264e4920
parentda002526ac30f679b0c797b0d71102dcdf200fe6
error: Remove NULL checks on error_propagate() calls

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>
16 files changed:
block.c
block/qcow2.c
block/quorum.c
block/raw-posix.c
block/raw_bsd.c
block/snapshot.c
blockdev.c
bootdevice.c
dump.c
hw/ide/qdev.c
hw/net/ne2000-isa.c
hw/s390x/virtio-ccw.c
hw/usb/dev-storage.c
qga/commands-win32.c
qom/object.c
scripts/coccinelle/error_propagate_null.cocci [new file with mode: 0644]