diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-08-10 13:08:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 14:39:48 -0400 |
commit | aa0d52c5e7f352ce9725c8940fe2458f2c04e049 (patch) | |
tree | 487411a36b6c8f4701c8b39fd506e1158ada8bda /drivers/net/wireless/ipw2x00 | |
parent | 1a7123cdd9f49cf1c908fb2c16d26f279c88d8c9 (diff) |
ipw2100: avoid warning from pointer cast in call to IPW_DEBUG_TX
drivers/net/wireless/ipw2x00/ipw2100.c: In function 'ipw2100_tx_send_commands':
drivers/net/wireless/ipw2x00/ipw2100.c:3063: warning: cast to pointer from integer of different size
This changes the cast and the conversion to match other usage of the
same value in calls to IPW_DEBUG_TX.
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2x00')
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2100.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index a146240f7ddb..e4ed479c36f5 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
@@ -3064,9 +3064,9 @@ static void ipw2100_tx_send_commands(struct ipw2100_priv *priv) | |||
3064 | 3064 | ||
3065 | packet = list_entry(element, struct ipw2100_tx_packet, list); | 3065 | packet = list_entry(element, struct ipw2100_tx_packet, list); |
3066 | 3066 | ||
3067 | IPW_DEBUG_TX("using TBD at virt=%p, phys=%p\n", | 3067 | IPW_DEBUG_TX("using TBD at virt=%p, phys=%04X\n", |
3068 | &txq->drv[txq->next], | 3068 | &txq->drv[txq->next], |
3069 | (void *)(txq->nic + txq->next * | 3069 | (u32) (txq->nic + txq->next * |
3070 | sizeof(struct ipw2100_bd))); | 3070 | sizeof(struct ipw2100_bd))); |
3071 | 3071 | ||
3072 | packet->index = txq->next; | 3072 | packet->index = txq->next; |