From: Michael Brown Date: Tue, 4 Aug 2026 07:46:24 +0000 (+0100) Subject: [velocity] Correct direction of endianness conversion X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=897c87a8fa0df4eea86e55582bff8b1e95d738ee;p=thirdparty%2Fipxe.git [velocity] Correct direction of endianness conversion Signed-off-by: Michael Brown --- diff --git a/src/drivers/net/velocity.c b/src/drivers/net/velocity.c index 373714293..7464f4c28 100644 --- a/src/drivers/net/velocity.c +++ b/src/drivers/net/velocity.c @@ -566,7 +566,7 @@ static void velocity_poll_rx ( struct velocity_nic *vlc ) { rx_idx = ( vlc->rx_cons % VELOCITY_RXDESC_NUM ); desc = &vlc->rx_ring[rx_idx]; - des0 = cpu_to_le32 ( desc->des0 ); + des0 = le32_to_cpu ( desc->des0 ); /* Return if descriptor still in use */ if ( des0 & VELOCITY_DES0_OWN )