Skip to contentSkip to conversation

hfsplus: Use get/put_unaligned_* helpers

PATCH In review Harvey Harrison 1 participant 1 message Apr 14, 2008 Hfsplus filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 13/15 hfsplus: Use get/put_unaligned_* helpers

---
 fs/hfsplus/wrapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/hfsplus/wrapper.c +1 -1
index 72cab78..175d08e 100644
@@ -47,7 +47,7 @@ static int hfsplus_read_mdb(void *bufptr, struct hfsplus_wd *wd)
 		return 0;
 	wd->ablk_start = be16_to_cpu(*(__be16 *)(bufptr + HFSP_WRAPOFF_ABLKSTART));
 
-	extent = be32_to_cpu(get_unaligned((__be32 *)(bufptr + HFSP_WRAPOFF_EMBEDEXT)));
+	extent = get_unaligned_be32(bufptr + HFSP_WRAPOFF_EMBEDEXT);
 	wd->embed_start = (extent >> 16) & 0xFFFF;
 	wd->embed_count = extent & 0xFFFF;
 
Signature · 1 line
1.5.5.144.g3e42