qapi: Drop unused error argument for list and implicit struct
No backend was setting an error when ending the visit of a list or implicit struct, or when moving to the next list node. Make the callers a bit easier to follow by making this a part of the contract, and removing the errp argument - callers can then unconditionally end an object as part of cleanup without having to think about whether a second error is dominated by a first, because there is no second error. A later patch will then tackle the larger task of splitting visit_end_struct(), which can indeed set an error. Signed-off-by:Eric Blake <eblake@redhat.com> Message-Id: <1454075341-13658-24-git-send-email-eblake@redhat.com> Signed-off-by:
Markus Armbruster <armbru@redhat.com>
Showing
- hw/ppc/spapr_drc.c 1 addition, 5 deletionshw/ppc/spapr_drc.c
- include/qapi/visitor-impl.h 6 additions, 3 deletionsinclude/qapi/visitor-impl.h
- include/qapi/visitor.h 5 additions, 3 deletionsinclude/qapi/visitor.h
- qapi/opts-visitor.c 3 additions, 3 deletionsqapi/opts-visitor.c
- qapi/qapi-dealloc-visitor.c 4 additions, 4 deletionsqapi/qapi-dealloc-visitor.c
- qapi/qapi-visit-core.c 6 additions, 6 deletionsqapi/qapi-visit-core.c
- qapi/qmp-input-visitor.c 3 additions, 8 deletionsqapi/qmp-input-visitor.c
- qapi/qmp-output-visitor.c 3 additions, 3 deletionsqapi/qmp-output-visitor.c
- qapi/string-input-visitor.c 3 additions, 5 deletionsqapi/string-input-visitor.c
- qapi/string-output-visitor.c 3 additions, 5 deletionsqapi/string-output-visitor.c
- scripts/qapi-visit.py 4 additions, 8 deletionsscripts/qapi-visit.py
Loading
Please register or sign in to comment