]> git.ipfire.org Git - thirdparty/libvirt.git/commit
getOldStyleBlockDevice: Adjust formatting
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Jun 2015 11:13:27 +0000 (13:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Jun 2015 12:13:39 +0000 (14:13 +0200)
commitc4bdfafcbb9ed00fa450d302acf9cf7929f24fc4
tree4c0cf1ff7b65ef35cc1ad16326de755bfe14050b
parent71b66bec2bd54e991a506834a3834d4513970c65
getOldStyleBlockDevice: Adjust formatting

Instead of initializing return value to zero (success) and overwriting
it on every failure just before the control jumps onto 'out' label,
let's initialize to an error value and set to zero only when we are
sure about the success. Just follow the pattern we have in the rest of
the code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_backend_scsi.c