]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: fix wrong return from bnx2x_trylock_hw_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 27 Aug 2010 05:03:53 +0000 (22:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2010 05:03:53 +0000 (22:03 -0700)
commit4497b580c13102d9d52811760cb7db6ec6b7ad79
treedc0d644f715f48d78c20ed576c83cf10a436f84e
parent7fac9a7adcf86b84734d3934ec7f6f23232cdd7a
bnx2x: fix wrong return from bnx2x_trylock_hw_lock

bnx2x_trylock_hw_lock() returns a bool :

true if succeeded to acquire the lock.
false in case of error.

-EINVAL is not an acceptable value, since its promoted to true.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_main.c