aboutsummaryrefslogtreecommitdiff
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 2180c65..9a8a3aa 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -216,8 +216,7 @@ void netdev_tx_complete_err ( struct net_device *netdev,
}
/* Catch data corruption as early as possible */
- assert ( iobuf->list.next != NULL );
- assert ( iobuf->list.prev != NULL );
+ list_check_contains ( iobuf, &netdev->tx_queue, list );
/* Dequeue and free I/O buffer */
list_del ( &iobuf->list );