SOCKET remove useless code

At this point in iscsi_write_to_socket() pdu->written can only be
equal to total.

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2012-12-06 10:38:28 +01:00
parent 154760a00e
commit 36be387547

View File

@@ -542,12 +542,10 @@ iscsi_write_to_socket(struct iscsi_context *iscsi)
pdu->out_written += count;
}
if (pdu->written == total) {
if (pdu->flags & ISCSI_PDU_DELETE_WHEN_SENT) {
iscsi_free_pdu(iscsi, pdu);
}
iscsi->outqueue_current = NULL;
if (pdu->flags & ISCSI_PDU_DELETE_WHEN_SENT) {
iscsi_free_pdu(iscsi, pdu);
}
iscsi->outqueue_current = NULL;
}
return 0;
}