]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net/usb/asix.c: Fix pointer cast.
authorDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2010 23:24:03 +0000 (16:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2010 23:24:03 +0000 (16:24 -0700)
commit6a9067f10f07e71fe6439f5c881b9ee525be2e55
treeef5e4e19aa70fcf08d624fec1d5cc9a342c12136
parent04ac61d3b88fb4b168b889a3228c29a5bff3fac7
drivers/net/usb/asix.c: Fix pointer cast.

Stephen Rothwell reports the following new warning:

drivers/net/usb/asix.c: In function 'asix_rx_fixup':
drivers/net/usb/asix.c:325: warning: cast from pointer to integer of different size
drivers/net/usb/asix.c:354: warning: cast from pointer to integer of different size

The code just cares about the low alignment bits, so use
an "unsigned long" cast instead of one to "u32".

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.c