Commit 823ed72e authored by Harvey Harrison's avatar Harvey Harrison Committed by Jens Axboe

block: use get_unaligned_* helpers

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent e48ec690
...@@ -1003,7 +1003,7 @@ aoecmd_cfg_rsp(struct sk_buff *skb) ...@@ -1003,7 +1003,7 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
* Enough people have their dip switches set backwards to * Enough people have their dip switches set backwards to
* warrant a loud message for this special case. * warrant a loud message for this special case.
*/ */
aoemajor = be16_to_cpu(get_unaligned(&h->major)); aoemajor = get_unaligned_be16(&h->major);
if (aoemajor == 0xfff) { if (aoemajor == 0xfff) {
printk(KERN_ERR "aoe: Warning: shelf address is all ones. " printk(KERN_ERR "aoe: Warning: shelf address is all ones. "
"Check shelf dip switches.\n"); "Check shelf dip switches.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment