diff options
author | Oliver Upton <oupton@google.com> | 2021-09-16 18:15:49 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-18 14:43:46 -0400 |
commit | c1901feef5bbe87713815ad0eff6331ae7225973 (patch) | |
tree | 3bfde646e51b6d60fecfc418f1fda701d7597df1 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 61fb1c54853dda9a95b785f36220fa8ff39bac20 (diff) |
selftests: KVM: Fix kvm device helper ioctl assertions
The KVM_CREATE_DEVICE and KVM_{GET,SET}_DEVICE_ATTR ioctls are defined
to return a value of zero on success. As such, tighten the assertions in
the helper functions to only pass if the return code is zero.
Suggested-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20210916181555.973085-4-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions