diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-26 22:03:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-26 22:03:53 -0700 |
commit | 0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a (patch) | |
tree | dc0d644f715f48d78c20ed576c83cf10a436f84e /drivers/net/bnx2x/bnx2x_main.c | |
parent | 40d0802b3eb47d57e2d57a5244a18cbbe9632e13 (diff) | |
download | op-kernel-dev-0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a.zip op-kernel-dev-0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a.tar.gz |
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>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index 05a08d1..7fb9a61 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c @@ -781,7 +781,7 @@ static bool bnx2x_trylock_hw_lock(struct bnx2x *bp, u32 resource) DP(NETIF_MSG_HW, "resource(0x%x) > HW_LOCK_MAX_RESOURCE_VALUE(0x%x)\n", resource, HW_LOCK_MAX_RESOURCE_VALUE); - return -EINVAL; + return false; } if (func <= 5) |