atl1[ce]: fix sparse warnings
authorstephen hemminger <shemminger@vyatta.com>
Wed, 23 Feb 2011 09:06:49 +0000 (09:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 22:11:31 +0000 (14:11 -0800)
commit81b504b81437457614ce44ce0dac48038d35f859
tree73630dd160a6d5934e4e05e1826e1bf13359a1d1
parentc3f52ae6a378398127acb845087ddb9e8b67493b
atl1[ce]: fix sparse warnings

The dmaw_block is an enum and max_pay_load is u32. Therefore
sparse gives warning about comparison of unsigned and signed value.
Resolve by using min_t to force cast.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atl1c/atl1c_main.c
drivers/net/atl1e/atl1e_main.c