svn commit: r186019 - head/sys/dev/ath/ath_hal
Sam Leffler
sam at FreeBSD.org
Sat Dec 13 03:49:02 UTC 2008
Author: sam
Date: Sat Dec 13 03:49:01 2008
New Revision: 186019
URL: http://svn.freebsd.org/changeset/base/186019
Log:
remove dead code
Obtained from: netbsd
Modified:
head/sys/dev/ath/ath_hal/ah_eeprom_v14.c
Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Sat Dec 13 03:48:33 2008 (r186018)
+++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Sat Dec 13 03:49:01 2008 (r186019)
@@ -160,18 +160,6 @@ v14EepromDiag(struct ath_hal *ah, int re
return AH_FALSE;
}
-/* XXX conditionalize by target byte order */
-#ifndef bswap16
-static __inline__ uint16_t
-__bswap16(uint16_t _x)
-{
- return ((uint16_t)(
- (((const uint8_t *)(&_x))[0] ) |
- (((const uint8_t *)(&_x))[1]<< 8))
- );
-}
-#endif
-
/* Do structure specific swaps if Eeprom format is non native to host */
static void
eepromSwap(struct ar5416eeprom *ee)
More information about the svn-src-all
mailing list