conf: Add return value check to virResctrlAllocForeachCache
conf: Add return value check to virResctrlAllocForeachCache

Add return value check to virResctrlAllocForeachCache in
virDomainCachetuneDefFormat. The virResctrlAllocForeachCache does have
return value, so need check return value to make sure function executed
without error.

Signed-off-by: Bing Niu <34467639bd6a847b4565e75ecae35c7ac3dc1b95@intel.com>
Reviewed-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

eskultety/libvirt,jardasgit/libvirt,zippy2/libvirt,olafhering/libvirt,jardasgit/libvirt,zippy2/libvirt,nertpinx/libvirt,jfehlig/libvirt,libvirt/libvirt,nertpinx/libvirt,eskultety/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,olafhering/libvirt,jfehlig/libvirt,eskultety/libvirt,olafhering/libvirt,libvirt/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jfehlig/libvirt,libvirt/libvirt,andreabolognani/libvirt,olafhering/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,eskultety/libvirt,eskultety/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,andreabolognani/libvirt