diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-05-19 18:57:34 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-05-21 11:57:57 +0200 |
commit | 5f758366c0710d23e43f4d0f83816b98616a13d0 (patch) | |
tree | dbe5d4add2d20199fa90ca1cd0b2375ca3cb087d /xen-hvm-stub.c | |
parent | 3f9286b7214fbc7135d4fc223f07b0b30b91e2f1 (diff) |
char: Use return values instead of error_is_set(errp)
Using error_is_set(errp) to check whether a function call failed is
fragile: it breaks when errp is null. Check perfectly suitable return
values instead when possible. As far as I can tell, errp can't be
null there, but this is more robust and more obviously correct
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'xen-hvm-stub.c')
0 files changed, 0 insertions, 0 deletions