virsh: Resolve Coverity NEGATIVE_RETURNS
virsh: Resolve Coverity NEGATIVE_RETURNS

Coverity notes that after we VIR_ALLOC_N(params, nparams) a failed call to
virDomainGetCPUStats could result in nparams being set to -1. In that case,
the subsequent virTypedParamsFree in cleanup will pass -1 which isn't good.

Use the returned value as the number of stats to display in the loop as
it will be the value reported from the hypervisor and may be less than
nparams which is OK

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

olafhering/libvirt,eskultety/libvirt,zippy2/libvirt,crobinso/libvirt,rlaager/libvirt,agx/libvirt,shugaoye/libvirt,rlaager/libvirt,fabianfreyer/libvirt,zippy2/libvirt,andreabolognani/libvirt,eskultety/libvirt,nertpinx/libvirt,elmarco/libvirt,crobinso/libvirt,jardasgit/libvirt,rlaager/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,datto/libvirt,VenkatDatta/libvirt,crobinso/libvirt,rlaager/libvirt,nertpinx/libvirt,taget/libvirt,olafhering/libvirt,olafhering/libvirt,eskultety/libvirt,jfehlig/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jfehlig/libvirt,datto/libvirt,olafhering/libvirt,agx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,andreabolognani/libvirt,libvirt/libvirt,eskultety/libvirt,VenkatDatta/libvirt,datto/libvirt,jardasgit/libvirt,andreabolognani/libvirt,nertpinx/libvirt,shugaoye/libvirt,libvirt/libvirt,libvirt/libvirt,shugaoye/libvirt,taget/libvirt,elmarco/libvirt,andreabolognani/libvirt,agx/libvirt,crobinso/libvirt,libvirt/libvirt,jardasgit/libvirt,agx/libvirt,eskultety/libvirt,agx/libvirt,taget/libvirt,fabianfreyer/libvirt,elmarco/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,rlaager/libvirt,zippy2/libvirt,taget/libvirt,elmarco/libvirt,shugaoye/libvirt,elmarco/libvirt,datto/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,taget/libvirt,zippy2/libvirt,datto/libvirt,andreabolognani/libvirt