diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-07-03 15:01:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:28 -0400 |
commit | a7eee06b874a02e2de75727ab21a8747ca6309ff (patch) | |
tree | a4daf52dd51fdb1d761858ea98724d4dea47f1eb /drivers/net/wireless/p54/fwio.c | |
parent | 6c230c02700f9d2aebe6edf9f571835c06707940 (diff) |
p54: two endian fixes
This patch fixes all CHECK_ENDIAN complains:
1. p54/fwio.c:296:6: warning: restricted __le32 degrades to integer
p54/fwio.c:296:6: warning: restricted __le32 degrades to integer
2. p54/p54spi.c:172:32: warning: incorrect type in initializer
p54spi.c:172:32: expected restricted __le32 [usertype] buffer
p54/p54spi.c:172:32: got unsigned int
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/fwio.c')
-rw-r--r-- | drivers/net/wireless/p54/fwio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c index 178efbce4611..dc4f3f5ee0c8 100644 --- a/drivers/net/wireless/p54/fwio.c +++ b/drivers/net/wireless/p54/fwio.c | |||
@@ -292,8 +292,9 @@ int p54_tx_cancel(struct p54_common *priv, __le32 req_id) | |||
292 | { | 292 | { |
293 | struct sk_buff *skb; | 293 | struct sk_buff *skb; |
294 | struct p54_txcancel *cancel; | 294 | struct p54_txcancel *cancel; |
295 | u32 _req_id = le32_to_cpu(req_id); | ||
295 | 296 | ||
296 | if (unlikely(req_id < priv->rx_start || req_id > priv->rx_end)) | 297 | if (unlikely(_req_id < priv->rx_start || _req_id > priv->rx_end)) |
297 | return -EINVAL; | 298 | return -EINVAL; |
298 | 299 | ||
299 | skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*cancel), | 300 | skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*cancel), |