diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-03-26 15:21:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 16:03:22 -0400 |
commit | 8dd62822ddbf6a9314e9b92a3816c04490c91293 (patch) | |
tree | 32eae26daf6a73276b5c909148edb562aaca3828 /drivers | |
parent | cee24a3e580f1062c8bb8b1692b95014d882bc7d (diff) | |
download | talos-obmc-linux-8dd62822ddbf6a9314e9b92a3816c04490c91293.tar.gz talos-obmc-linux-8dd62822ddbf6a9314e9b92a3816c04490c91293.zip |
prism54: correct thinko in "prism54: Convert stats_sem in a mutex"
mutex_trylock has different return code semantics than down_trylock...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/prism54/isl_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/prism54/isl_ioctl.c b/drivers/net/wireless/prism54/isl_ioctl.c index 2d91a56d6a39..2e25e190f334 100644 --- a/drivers/net/wireless/prism54/isl_ioctl.c +++ b/drivers/net/wireless/prism54/isl_ioctl.c @@ -218,7 +218,7 @@ prism54_get_wireless_stats(struct net_device *ndev) islpci_private *priv = netdev_priv(ndev); /* If the stats are being updated return old data */ - if (mutex_trylock(&priv->stats_lock) == 0) { + if (mutex_trylock(&priv->stats_lock)) { memcpy(&priv->iwstatistics, &priv->local_iwstatistics, sizeof (struct iw_statistics)); /* They won't be marked updated for the next time */ |