]> xenbits.xensource.com Git - libvirt.git/commit
scsi: Change order of checks in createVport
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Nov 2016 12:44:52 +0000 (07:44 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 4 Jan 2017 22:09:59 +0000 (17:09 -0500)
commit476ecf2a2a7f9d7498fbe61b0431006f4088125d
treef8b2f781c82646055d127b38f52f70dc67f91a64
parent79ab093518ffd07724eb0f8950a07b81d878e9b3
scsi: Change order of checks in createVport

Move the check for an already existing vHBA to the top of the function.
No sense in first decoding a provided parent if the next thing we're going
to do is fail if a provided wwnn/wwpn already exists.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_scsi.c