]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: typedparam: Purge public bits from virTypedParamsGetStringList
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Sep 2019 17:35:51 +0000 (19:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Sep 2019 11:02:48 +0000 (13:02 +0200)
The function is not exported in the public API thus the error
dispatching is not required.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virtypedparam.c

index 7abf0257ce0424d7f270aba8e523d932c5c8f157..acf8c396021b7a8064b5f86b912abdfc6a7e70e8 100644 (file)
@@ -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;
 }