diff options
author | Pavel Roskin <proski@gnu.org> | 2005-11-29 02:59:27 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:28:56 -0500 |
commit | c08ad1e304061dbd6ef7545d8f2db530b43c0fbd (patch) | |
tree | ce55c1ed1d7aabe5dd691a9270de9f63a4ae3738 /drivers/net/wireless/orinoco.c | |
parent | ee7ebdf40260c6c5586f20cda5d253bc988e7baa (diff) | |
download | blackbird-obmc-linux-c08ad1e304061dbd6ef7545d8f2db530b43c0fbd.tar.gz blackbird-obmc-linux-c08ad1e304061dbd6ef7545d8f2db530b43c0fbd.zip |
[PATCH] orinoco: fix setting power management parameters
Power management parameters could not be set by iwconfig due to
incorrect error handling.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless/orinoco.c')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 488ab06fb79f..6fd0bf736830 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c @@ -3512,9 +3512,8 @@ static int orinoco_ioctl_setpower(struct net_device *dev, break; default: err = -EINVAL; - } - if (err) goto out; + } if (prq->flags & IW_POWER_TIMEOUT) { priv->pm_on = 1; |