Skip to content

Commit

Permalink
ipw2100: avoid warning from pointer cast in call to IPW_DEBUG_TX
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville committed Aug 16, 2010
1 parent 1a7123c commit aa0d52c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ipw2x00/ipw2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -3064,9 +3064,9 @@ static void ipw2100_tx_send_commands(struct ipw2100_priv *priv)

packet = list_entry(element, struct ipw2100_tx_packet, list);

IPW_DEBUG_TX("using TBD at virt=%p, phys=%p\n",
IPW_DEBUG_TX("using TBD at virt=%p, phys=%04X\n",
&txq->drv[txq->next],
(void *)(txq->nic + txq->next *
(u32) (txq->nic + txq->next *
sizeof(struct ipw2100_bd)));

packet->index = txq->next;
Expand Down

0 comments on commit aa0d52c

Please sign in to comment.