]> xenbits.xensource.com Git - libvirt.git/commit
storage: Invert retval logic in virStorageBackendSCSITriggerRescan
authorJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 02:48:53 +0000 (21:48 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit5028781621e47a90655de641a5ea35cbc952997f
tree73a8296bd0484ff1a000ed64738fbc30bc9f92ab
parent763b76cbf626f5ed851bbab85a922bfd8afdeb5e
storage: Invert retval logic in virStorageBackendSCSITriggerRescan

Rather than initialize to 0 and change to -1 on error, let's do the
normal operation of initializing to -1 and set to 0 on success.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_scsi.c