summaryrefslogtreecommitdiff
path: root/src/dev/net/pktfifo.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/net/pktfifo.hh')
-rw-r--r--src/dev/net/pktfifo.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/net/pktfifo.hh b/src/dev/net/pktfifo.hh
index 5ef75423c..456c4433b 100644
--- a/src/dev/net/pktfifo.hh
+++ b/src/dev/net/pktfifo.hh
@@ -106,8 +106,8 @@ class PacketFifo
unsigned
reserve(unsigned len = 0)
{
+ assert(avail() >= len);
_reserved += len;
- assert(avail() >= 0);
return _reserved;
}