linux/drivers/net/ethernet/cadence
Joachim Eastwood 95ebcea69c net/macb: fix truncate warnings
When building macb on x86_64 the following warnings show up:
  drivers/net/ethernet/cadence/macb.c: In function macb_interrupt:
  drivers/net/ethernet/cadence/macb.c:556:4: warning: large integer implicitly truncated to unsigned type [-Woverflow]
  drivers/net/ethernet/cadence/macb.c: In function macb_reset_hw:
  drivers/net/ethernet/cadence/macb.c:792:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
  drivers/net/ethernet/cadence/macb.c:793:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
  drivers/net/ethernet/cadence/macb.c:796:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]

Use -1 insted of ~0UL, as done in other places in the driver,
to silence these warnings.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-10-23 02:40:09 -04:00
..
at91_ether.c net/at91_ether: convert to devm_* functions 2012-10-19 13:18:30 -04:00
Kconfig net/at91_ether: compile macb for exported functions 2012-10-19 13:18:29 -04:00
macb.c net/macb: fix truncate warnings 2012-10-23 02:40:09 -04:00
macb.h net/at91_ether: clean up rx buffer handling 2012-10-19 13:18:29 -04:00
Makefile net/at91_ether: compile macb for exported functions 2012-10-19 13:18:29 -04:00