]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[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)
commita2e5cf1a3fb7bbffb4136a12daea9145577a3241
tree7915deb9b210ae34fdcf2ed458605917cf87083d
parent9ff61ab28df1a0d20e1819d387094d220c1580ad
[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>
src/net/netdevice.c