* [PATCH 30/37] acorn: use get/put_endian helpers
@ 2008-05-29 20:19 Harvey Harrison
0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-05-29 20:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-arch
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
fs/partitions/acorn.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/partitions/acorn.c b/fs/partitions/acorn.c
index 3d3e166..cf4c1be 100644
--- a/fs/partitions/acorn.c
+++ b/fs/partitions/acorn.c
@@ -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;
}
--
1.5.6.rc0.277.g804cf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-29 20:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 20:19 [PATCH 30/37] acorn: use get/put_endian helpers Harvey Harrison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox