Thread (22 messages) 22 messages, 7 authors, 2012-02-13

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

flat view

From: David Laight <hidden>
Date: 2012-02-07 12:59:00

 
quoted hunk ↗ jump to hunk
 	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.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help