On 6/24/20 11:43 AM, Markus Armbruster wrote:
The previous commit enables conversion of

     foo(..., &err);
     if (err) {
        ...
     }

to

     if (!foo(..., errp)) {
        ...
     }

for QOM functions that now return true / false on success / error.
Coccinelle script:


Signed-off-by: Markus Armbruster <arm...@redhat.com>
---
Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to