Skip to contentSkip to conversation

acorn: use get/put_endian helpers

PATCH In review Harvey Harrison 1 participant 1 message May 29, 2008 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 30/37 acorn: use get/put_endian helpers

---
 fs/partitions/acorn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/partitions/acorn.c +1 -1
index 3d3e166..cf4c1be 100644
@@ -344,7 +344,7 @@ static inline int valid_ics_sector(const unsigned char *data)
 	for (i = 0, sum = 0x50617274; i < 508; i++)
 		sum += data[i];
 
-	sum -= le32_to_cpu(*(__le32 *)(&data[508]));
+	sum -= get_le32((__le32 *)&data[508]);
 
 	return sum == 0;
 }
Signature · 1 line
1.5.6.rc0.277.g804cf