Skip to contentSkip to conversation

block: use get_unaligned_* helpers

PATCH Applied Harvey Harrison 1 participant 1 message May 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/8 block: use get_unaligned_* helpers

---
 drivers/block/aoe/aoecmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/aoe/aoecmd.c +1 -1
index 8fc429c..fdde6ad 100644
@@ -1001,7 +1001,7 @@ aoecmd_cfg_rsp(struct sk_buff *skb)
 	 * Enough people have their dip switches set backwards to
 	 * 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) {
 		printk(KERN_ERR "aoe: Warning: shelf address is all ones.  "
 			"Check shelf dip switches.\n");
Signature · 1 line
1.5.5.1.350.gbbbf