iscsi: Don't set error if already set in iscsi_do_inquiry
commitcbee81f6de57ddc1b21ba28f01f6a3b5d87428a5
authorFam Zheng <famz@redhat.com>
Fri, 4 Apr 2014 11:53:29 +0000 (4 19:53 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Apr 2014 12:11:34 +0000 (4 14:11 +0200)
treea4c1440302572227a43ca9bf082f817d88078501
parent5913815a17387a5e9825c734ccab760588471ee5
iscsi: Don't set error if already set in iscsi_do_inquiry

This eliminates the possible assertion failure in error_setg().

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c