diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-29 04:03:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:27 -0400 |
commit | f885f8d127665e784a8071755243bd4e18f594d5 (patch) | |
tree | 54a2a5d1e35007e56f032e3a6a1c629a9d73e1f4 /drivers/block/aoe/aoenet.c | |
parent | 6510d41954dc6a9c8b1dbca7eaca0f23195ca727 (diff) |
drivers/block: use get_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Ed L. Cashin <ecashin@coraid.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
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>
Diffstat (limited to 'drivers/block/aoe/aoenet.c')
-rw-r--r-- | drivers/block/aoe/aoenet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c index 18d243c73eee..d625169c8e48 100644 --- a/drivers/block/aoe/aoenet.c +++ b/drivers/block/aoe/aoenet.c | |||
@@ -128,7 +128,7 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, | |||
128 | skb_push(skb, ETH_HLEN); /* (1) */ | 128 | skb_push(skb, ETH_HLEN); /* (1) */ |
129 | 129 | ||
130 | h = (struct aoe_hdr *) skb_mac_header(skb); | 130 | h = (struct aoe_hdr *) skb_mac_header(skb); |
131 | n = be32_to_cpu(get_unaligned(&h->tag)); | 131 | n = get_unaligned_be32(&h->tag); |
132 | if ((h->verfl & AOEFL_RSP) == 0 || (n & 1<<31)) | 132 | if ((h->verfl & AOEFL_RSP) == 0 || (n & 1<<31)) |
133 | goto exit; | 133 | goto exit; |
134 | 134 | ||
@@ -140,7 +140,7 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, | |||
140 | printk(KERN_ERR | 140 | printk(KERN_ERR |
141 | "%s%d.%d@%s; ecode=%d '%s'\n", | 141 | "%s%d.%d@%s; ecode=%d '%s'\n", |
142 | "aoe: error packet from ", | 142 | "aoe: error packet from ", |
143 | be16_to_cpu(get_unaligned(&h->major)), | 143 | get_unaligned_be16(&h->major), |
144 | h->minor, skb->dev->name, | 144 | h->minor, skb->dev->name, |
145 | h->err, aoe_errlist[n]); | 145 | h->err, aoe_errlist[n]); |
146 | goto exit; | 146 | goto exit; |