rtl8188eu: Convert from endian defined in Makefile to use architecture-defined value

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-05-15 13:57:38 -05:00
parent 2951f6bc15
commit dc7c8c0b5d
10 changed files with 31 additions and 97 deletions

View file

@ -12205,15 +12205,10 @@ static void printdata(u8 *pbuf, u32 len)
if (i < len)
{
#ifdef CONFIG_BIG_ENDIAN
#ifdef __BIG_ENDIAN
for (; i < len, i++)
printk("%02X", pbuf+i);
#else // CONFIG_LITTLE_ENDIAN
#if 0
val = 0;
_rtw_memcpy(&val, pbuf + i, len - i);
printk("%8X", val);
#else
#else // __LITTLE_ENDIAN
u8 str[9];
u8 n;
val = 0;
@ -12222,8 +12217,7 @@ static void printdata(u8 *pbuf, u32 len)
sprintf(str, "%08X", val);
n = (4 - n) * 2;
printk("%8s", str+n);
#endif
#endif // CONFIG_LITTLE_ENDIAN
#endif // __LITTLE_ENDIAN
}
printk("\n");
}