aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoenet.c
diff options
context:
space:
mode:
authorecashin@coraid.com <ecashin@coraid.com>2005-04-19 01:00:20 -0400
committerGreg KH <greg@press.kroah.org>2005-04-19 01:00:20 -0400
commit63e9cc5d6fbe8b58ea1ee96439d356cbf726fbc0 (patch)
tree91d5831da4a99c3d9dafd8e8440516787a536f73 /drivers/block/aoe/aoenet.c
parent03347936afcba990525736ae39daa13f643eac5f (diff)
[PATCH] aoe 6/12: Alexey Dobriyan sparse cleanup
Alexey Dobriyan sparse cleanup Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru> Signed-off-by: Ed L. Cashin <ecashin@coraid.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/aoe/aoenet.c')
-rw-r--r--drivers/block/aoe/aoenet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c
index cc1945b8d52b..bc92aacb6dad 100644
--- a/drivers/block/aoe/aoenet.c
+++ b/drivers/block/aoe/aoenet.c
@@ -69,7 +69,7 @@ set_aoe_iflist(const char __user *user_str, size_t size)
69u64 69u64
70mac_addr(char addr[6]) 70mac_addr(char addr[6])
71{ 71{
72 u64 n = 0; 72 __be64 n = 0;
73 char *p = (char *) &n; 73 char *p = (char *) &n;
74 74
75 memcpy(p + 2, addr, 6); /* (sizeof addr != 6) */ 75 memcpy(p + 2, addr, 6); /* (sizeof addr != 6) */
@@ -108,7 +108,7 @@ static int
108aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt) 108aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt)
109{ 109{
110 struct aoe_hdr *h; 110 struct aoe_hdr *h;
111 ulong n; 111 u32 n;
112 112
113 skb = skb_check(skb); 113 skb = skb_check(skb);
114 if (!skb) 114 if (!skb)
@@ -121,7 +121,7 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt)
121 skb_push(skb, ETH_HLEN); /* (1) */ 121 skb_push(skb, ETH_HLEN); /* (1) */
122 122
123 h = (struct aoe_hdr *) skb->mac.raw; 123 h = (struct aoe_hdr *) skb->mac.raw;
124 n = __be32_to_cpu(*((u32 *) h->tag)); 124 n = be32_to_cpu(h->tag);
125 if ((h->verfl & AOEFL_RSP) == 0 || (n & 1<<31)) 125 if ((h->verfl & AOEFL_RSP) == 0 || (n & 1<<31))
126 goto exit; 126 goto exit;
127 127
@@ -132,7 +132,7 @@ aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt)
132 if (net_ratelimit()) 132 if (net_ratelimit())
133 printk(KERN_ERR "aoe: aoenet_rcv: error packet from %d.%d; " 133 printk(KERN_ERR "aoe: aoenet_rcv: error packet from %d.%d; "
134 "ecode=%d '%s'\n", 134 "ecode=%d '%s'\n",
135 __be16_to_cpu(*((u16 *) h->major)), h->minor, 135 be16_to_cpu(h->major), h->minor,
136 h->err, aoe_errlist[n]); 136 h->err, aoe_errlist[n]);
137 goto exit; 137 goto exit;
138 } 138 }