summaryrefslogtreecommitdiff
path: root/tests/virnetdevbandwidthtest.c
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2019-10-24 14:25:59 +0200
committerPeter Krempa <pkrempa@redhat.com>2019-10-24 19:35:34 +0200
commit205d6a2af7911731745e5523824a60590cc5847c (patch)
treef422e806d552a273bae916103a88cf934c3d2273 /tests/virnetdevbandwidthtest.c
parent418aa809fdd401a82baafda68ae74c3db0fada09 (diff)
downloadlibvirt-205d6a2af7911731745e5523824a60590cc5847c.tar.gz
util: buffer: Remove virBufferError
The function now does not return an error so we can drop it fully. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'tests/virnetdevbandwidthtest.c')
-rw-r--r--tests/virnetdevbandwidthtest.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/virnetdevbandwidthtest.c b/tests/virnetdevbandwidthtest.c
index 59647173c3..8039fedbc4 100644
--- a/tests/virnetdevbandwidthtest.c
+++ b/tests/virnetdevbandwidthtest.c
@@ -84,11 +84,6 @@ testVirNetDevBandwidthSet(const void *data)
goto cleanup;
if (!(actual_cmd = virBufferContentAndReset(&buf))) {
- int err = virBufferError(&buf);
- if (err) {
- fprintf(stderr, "buffer's in error state: %d", err);
- goto cleanup;
- }
/* This is interesting, no command has been executed.
* Maybe that's expected, actually. */
}