aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-11-29 11:23:41 +0000
committerMichael Brown <mcb30@ipxe.org>2020-11-29 11:25:40 +0000
commita2e5cf1a3fb7bbffb4136a12daea9145577a3241 (patch)
tree7915deb9b210ae34fdcf2ed458605917cf87083d
parent9ff61ab28df1a0d20e1819d387094d220c1580ad (diff)
downloadipxe-a2e5cf1a3fb7bbffb4136a12daea9145577a3241.zip
ipxe-a2e5cf1a3fb7bbffb4136a12daea9145577a3241.tar.gz
ipxe-a2e5cf1a3fb7bbffb4136a12daea9145577a3241.tar.bz2
[netdevice] Fix misleading comment on netdev_rx()
Unlike netdev_rx_err(), there is no valid circumstance under which netdev_rx() may be called with a null I/O buffer, since a call to netdev_rx() represents the successful reception of a packet. Fix the code comment to reflect this. Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/net/netdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 754799c..6e68563 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -478,7 +478,7 @@ static void netdev_tx_flush ( struct net_device *netdev ) {
* Add packet to receive queue
*
* @v netdev Network device
- * @v iobuf I/O buffer, or NULL
+ * @v iobuf I/O buffer
*
* The packet is added to the network device's RX queue. This
* function takes ownership of the I/O buffer.