mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: virHostMemSetParameters: remove pointless variable
It is only used inside the condition. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ec9b47e133
commit
c927b2e85a
@ -363,7 +363,6 @@ virHostMemSetParameters(virTypedParameterPtr params G_GNUC_UNUSED,
|
||||
|
||||
#ifdef __linux__
|
||||
size_t i;
|
||||
int rc;
|
||||
|
||||
if (virTypedParamsValidate(params, nparams,
|
||||
VIR_NODE_MEMORY_SHARED_PAGES_TO_SCAN,
|
||||
@ -379,9 +378,7 @@ virHostMemSetParameters(virTypedParameterPtr params G_GNUC_UNUSED,
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < nparams; i++) {
|
||||
rc = virHostMemSetParameterValue(¶ms[i]);
|
||||
|
||||
if (rc < 0)
|
||||
if (virHostMemSetParameterValue(¶ms[i]) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user