From: Mike McCormack Date: Mon, 31 Jan 2011 13:11:02 +0000 (+0900) Subject: Staging: rtl8192e: Remove unused endian_swap function X-Git-Tag: firefly_0821_release~7613^2~2197^2~746 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1694027394a625fc880d8a6d5357d17d48d64978;p=firefly-linux-kernel-4.4.55.git Staging: rtl8192e: Remove unused endian_swap function Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/r8192E_core.c b/drivers/staging/rtl8192e/r8192E_core.c index fb16bef4973f..13158fa33769 100644 --- a/drivers/staging/rtl8192e/r8192E_core.c +++ b/drivers/staging/rtl8192e/r8192E_core.c @@ -2263,17 +2263,6 @@ static void rtl8192_get_eeprom_size(struct net_device* dev) RT_TRACE(COMP_INIT, "<===========%s(), epromtype:%d\n", __FUNCTION__, priv->epromtype); } -/* - * used to swap endian. as ntohl & htonl are not - * neccessary to swap endian, so use this instead. - */ -static inline u16 endian_swap(u16* data) -{ - u16 tmp = *data; - *data = (tmp >> 8) | (tmp << 8); - return *data; -} - /* * Adapter->EEPROMAddressSize should be set before this function call. * EEPROM address size can be got through GetEEPROMSize8185()