mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 06:49:20 +03:00
Fixed variable name in assertion
This commit is contained in:
@@ -236,7 +236,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi,
|
|||||||
remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
|
remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
|
||||||
assert ( iscsi->command != NULL );
|
assert ( iscsi->command != NULL );
|
||||||
assert ( iscsi->command->data_out != NULL );
|
assert ( iscsi->command->data_out != NULL );
|
||||||
assert ( ( offset + len ) <= iscsi->command->data_out_len );
|
assert ( ( offset + remaining ) <= iscsi->command->data_out_len );
|
||||||
|
|
||||||
if ( remaining < len )
|
if ( remaining < len )
|
||||||
len = remaining;
|
len = remaining;
|
||||||
|
|||||||
Reference in New Issue
Block a user