Rework error messages generated when login fails to not repeat the same

thing "Failed to login to target" several times as the error cascades
up through the layers of callbacks.
This commit is contained in:
Ronnie Sahlberg
2011-01-02 12:12:30 +11:00
parent 796b3a6acc
commit 190ea92810
3 changed files with 2 additions and 4 deletions

View File

@@ -67,8 +67,6 @@ iscsi_login_cb(struct iscsi_context *iscsi, int status, void *command_data _U_,
struct connect_task *ct = private_data;
if (status != 0) {
iscsi_set_error(iscsi, "Failed to login to iSCSI target. "
"%s", iscsi_get_error(iscsi));
ct->cb(iscsi, SCSI_STATUS_ERROR, NULL, ct->private_data);
free(ct);
return;