Re: [net-next 10/11] e1000e: fix sparse warnings with -D__CHECK_ENDIAN__

David Miller
2012-02-07T17:16:42Z

From: "David Laight" <David.Laight@ACULAB.COM>
Date: Tue, 7 Feb 2012 12:58:35 -0000

>
>> for (i = 0; i < last_word - first_word + 1; i++)
>> - eeprom_buff[i] = cpu_to_le16(eeprom_buff[i]);
>> + cpu_to_le16s(&eeprom_buff[i]);
>
> The old version is likely to generate much better code.

Not on cpus that have swap-endian loads and stores.