summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-11-10 11:33:12 -0800
committerMarge Bot <emma+marge@anholt.net>2024-11-16 22:09:35 +0000
commit3f2000a09af7c665a451ee2b3c8669cdc4633815 (patch)
treeaea91c4f10b6a0dff0e281fa55306e21fa8e9705
parent7012e41c651c4c163667afea39621b1692468ca7 (diff)
mga_bios: remove unused get_u32 inline functionHEADmaster
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 <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/-/merge_requests/15>
-rw-r--r--src/mga_bios.c20
1 files changed, 0 insertions, 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
@@ -72,26 +72,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.
*
* Version 0x01XX of the BIOS PInS structure is only found in Millennium cards.