The function is not exported in the public API thus the error
dispatching is not required.

Signed-off-by: Peter Krempa <pkre...@redhat.com>
---
 src/util/virtypedparam.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c
index 7abf0257ce..acf8c39602 100644
--- a/src/util/virtypedparam.c
+++ b/src/util/virtypedparam.c
@@ -514,8 +514,6 @@ virTypedParamsGetStringList(virTypedParameterPtr params,
     int nfiltered;
     virTypedParameterPtr *filtered = NULL;

-    virResetLastError();
-
     virCheckNonNullArgGoto(values, error);
     *values = NULL;

@@ -540,7 +538,6 @@ virTypedParamsGetStringList(virTypedParameterPtr params,
     if (values)
         VIR_FREE(*values);
     VIR_FREE(filtered);
-    virDispatchError(NULL);
     return -1;
 }

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to