public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 13/37] md: use get/put_endian helpers
@ 2008-05-29 20:18 Harvey Harrison
  0 siblings, 0 replies; only message in thread
From: Harvey Harrison @ 2008-05-29 20:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-arch

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
 drivers/md/md.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 51c19f8..ce19588 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1022,7 +1022,7 @@ static __le32 calc_sb_1_csum(struct mdp_superblock_1 * sb)
 		newcsum += le32_to_cpu(*isuper++);
 
 	if (size == 2)
-		newcsum += le16_to_cpu(*(__le16*) isuper);
+		newcsum += get_le16((__le16 *)isuper);
 
 	csum = (newcsum & 0xffffffff) + (newcsum >> 32);
 	sb->sb_csum = disk_csum;
-- 
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:18 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:18 [PATCH 13/37] md: 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