From 3f2000a09af7c665a451ee2b3c8669cdc4633815 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 10 Nov 2024 11:33:12 -0800 Subject: mga_bios: remove unused get_u32 inline function Clears warning from clang: mga_bios.c:77:26: warning: unused function 'get_u32' [-Wunused-function] static __inline__ CARD32 get_u32( const CARD8 * data ) ^ Signed-off-by: Alan Coopersmith Part-of: --- src/mga_bios.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/mga_bios.c b/src/mga_bios.c index e5aa45c..04bd23d 100644 --- a/src/mga_bios.c +++ b/src/mga_bios.c @@ -71,26 +71,6 @@ static __inline__ CARD16 get_u16( const CARD8 * data ) } -/** - * Read a little-endian, unaligned data value and return as 32-bit. - */ -static __inline__ CARD32 get_u32( const CARD8 * data ) -{ - CARD32 temp; - - - temp = data[3]; - temp <<= 8; - temp += data[2]; - temp <<= 8; - temp += data[1]; - temp <<= 8; - temp += data[0]; - - return temp; -} - - /** * Parse version 0x01XX of the BIOS PInS structure. * -- cgit v1.2.3