From e13c551e9fa5e2e8ddcc7d95b2fa7de5ff497fe9 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 17 Sep 2019 19:35:51 +0200 Subject: [PATCH] util: typedparam: Purge public bits from virTypedParamsGetStringList MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The function is not exported in the public API thus the error dispatching is not required. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- 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.47.2