pasemi_mac: mac_to_intf() error not noticed
authorroel kluin <roel.kluin@gmail.com>
Thu, 23 Apr 2009 08:53:20 +0000 (08:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2009 10:20:17 +0000 (03:20 -0700)
commit15b8e19131486856373592e45793a79aefb6fbe7
treee833a48bf5da7b2fdecb5894fd5dcfa7935b54a4
parent683703a26e4677db437a1480682851e27c7a154f
pasemi_mac: mac_to_intf() error not noticed

mac_to_intf() can return -1 when no device or function is found, but when
mac->dma_if is unsigned. The error wasn't noticed.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pasemi_mac.c