conf: refactor virDomainBlkioDeviceParseXML to reduce calls to xmlNodeGetContent
conf: refactor virDomainBlkioDeviceParseXML to reduce calls to xmlNodeGetContent

virDomainBlkioDeviceParseXML() calls xmlNodeGetContent() multiple
times in a loop, but can easily be refactored to call it once for all
element nodes, and then use the result of that one call in each of the
(mutually exclusive) blocks that previously each had their own call to
xmlNodeGetContent.

This is being done in order to reduce the number of changes needed in
an upcoming patch that will eliminate the lack of checking for NULL on
return from xmlNodeGetContent().

As part of the simplification, the while() loop has been changed into
a for() so that we can use "continue" without bypassing the
"node = node->next".

Signed-off-by: Laine Stump <c23361c43fbf79fed83e8b76173707b083d6caf5@redhat.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

jfehlig/libvirt,nertpinx/libvirt,nertpinx/libvirt,olafhering/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,nertpinx/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,jardasgit/libvirt,jardasgit/libvirt,crobinso/libvirt,libvirt/libvirt,crobinso/libvirt,zippy2/libvirt,olafhering/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,libvirt/libvirt,jardasgit/libvirt