]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[netdevice] Fix misleading comment on netdev_rx()
authorMichael Brown <mcb30@ipxe.org>
Sun, 29 Nov 2020 11:23:41 +0000 (11:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 29 Nov 2020 11:25:40 +0000 (11:25 +0000)
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>
src/net/netdevice.c

index 754799cd1da37f13fc4a15b863690b435332629f..6e685630c6c351b2b331c98d66b5d9c0e3b04ae0 100644 (file)
@@ -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.