|
@@ -129,7 +129,7 @@ static void iscsi_rx_data_in ( struct iscsi_session *iscsi, void *data,
|
129
|
129
|
/* Copy data to data-in buffer */
|
130
|
130
|
offset = ntohl ( data_in->offset ) + iscsi->rx_offset;
|
131
|
131
|
assert ( iscsi->command != NULL );
|
132
|
|
- assert ( iscsi->command->data_in != NULL );
|
|
132
|
+ assert ( iscsi->command->data_in );
|
133
|
133
|
assert ( ( offset + len ) <= iscsi->command->data_in_len );
|
134
|
134
|
copy_to_user ( iscsi->command->data_in, offset, data, len );
|
135
|
135
|
|
|
@@ -235,7 +235,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi,
|
235
|
235
|
iscsi->tx_offset );
|
236
|
236
|
remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
|
237
|
237
|
assert ( iscsi->command != NULL );
|
238
|
|
- assert ( iscsi->command->data_out != NULL );
|
|
238
|
+ assert ( iscsi->command->data_out );
|
239
|
239
|
assert ( ( offset + remaining ) <= iscsi->command->data_out_len );
|
240
|
240
|
|
241
|
241
|
if ( remaining < len )
|