migration/rdma: clean up qemu_rdma_dest_init a bit
commit1dbd2fd9cbf29c74131e439ce80fb2efde56ee32
authorMichael Tokarev <mjt@tls.msk.ru>
Mon, 16 Feb 2015 07:50:25 +0000 (16 10:50 +0300)
committerJuan Quintela <quintela@redhat.com>
Tue, 17 Mar 2015 14:20:37 +0000 (17 15:20 +0100)
tree0c7e1cae8c20177950816e7e877aca0d4d2a8b87
parent97baf9d9f768caac57bb98d79a1d878181e8a052
migration/rdma: clean up qemu_rdma_dest_init a bit

Do not check for rdma->host being empty twice.  This removes a large
"if" block, so code indentation is changed.  While at it, remove an
ugly goto from the loop, replacing it with a cleaner if logic.  And
finally, there's no need to initialize `ret' variable since is always
has a value.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
--

fixed space detected by Dave
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c