Skip to content

Commit 8b3789e

Browse files
hharrisontorvalds
authored andcommitted
hfsplus: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 803f445 commit 8b3789e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/hfsplus/wrapper.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int hfsplus_read_mdb(void *bufptr, struct hfsplus_wd *wd)
4747
return 0;
4848
wd->ablk_start = be16_to_cpu(*(__be16 *)(bufptr + HFSP_WRAPOFF_ABLKSTART));
4949

50-
extent = be32_to_cpu(get_unaligned((__be32 *)(bufptr + HFSP_WRAPOFF_EMBEDEXT)));
50+
extent = get_unaligned_be32(bufptr + HFSP_WRAPOFF_EMBEDEXT);
5151
wd->embed_start = (extent >> 16) & 0xFFFF;
5252
wd->embed_count = extent & 0xFFFF;
5353

0 commit comments

Comments
 (0)