diff options
| author | Michael Brown | 2006-08-10 19:35:14 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-08-10 19:35:14 +0200 |
| commit | 2497270c145377615766f668ea72de8a29605865 (patch) | |
| tree | db8284c0110e517c041845c6fa3d462a27a6a893 /src/net | |
| parent | Fixed variable name in assertion (diff) | |
| download | ipxe-2497270c145377615766f668ea72de8a29605865.tar.gz ipxe-2497270c145377615766f668ea72de8a29605865.tar.xz ipxe-2497270c145377615766f668ea72de8a29605865.zip | |
command->data_{in,out} are now userptr_t, so it is invalid to compare
against NULL.
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/tcp/iscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index c7c47cbee..e970fb30d 100644 --- a/src/net/tcp/iscsi.c +++ b/src/net/tcp/iscsi.c @@ -129,7 +129,7 @@ static void iscsi_rx_data_in ( struct iscsi_session *iscsi, void *data, /* Copy data to data-in buffer */ offset = ntohl ( data_in->offset ) + iscsi->rx_offset; assert ( iscsi->command != NULL ); - assert ( iscsi->command->data_in != NULL ); + assert ( iscsi->command->data_in ); assert ( ( offset + len ) <= iscsi->command->data_in_len ); copy_to_user ( iscsi->command->data_in, offset, data, len ); @@ -235,7 +235,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi, iscsi->tx_offset ); remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset); assert ( iscsi->command != NULL ); - assert ( iscsi->command->data_out != NULL ); + assert ( iscsi->command->data_out ); assert ( ( offset + remaining ) <= iscsi->command->data_out_len ); if ( remaining < len ) |
