iscsi: reorganize iscsi_readcapacity_sync
commit1288844e7c4ede59509bf697a4cca0f2215a1ce3
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 May 2013 11:56:24 +0000 (31 13:56 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2013 10:43:03 +0000 (18 12:43 +0200)
tree8bad1e035b58571b4349fd0f6be862ed7c2e3558
parentf0d2a4d4d63dd2f0f3ecb2d591b979b0e7f24a22
iscsi: reorganize iscsi_readcapacity_sync

Avoid the goto, and use the same retry logic for the 10- and 16-
byte versions.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c