Skip to content

Commit 823ed72

Browse files
hharrisonJens Axboe
authored andcommitted
block: use get_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent e48ec69 commit 823ed72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/block/aoe/aoecmd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
10031003
* Enough people have their dip switches set backwards to
10041004
* warrant a loud message for this special case.
10051005
*/
1006-
aoemajor = be16_to_cpu(get_unaligned(&h->major));
1006+
aoemajor = get_unaligned_be16(&h->major);
10071007
if (aoemajor == 0xfff) {
10081008
printk(KERN_ERR "aoe: Warning: shelf address is all ones. "
10091009
"Check shelf dip switches.\n");

0 commit comments

Comments
 (0)