[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>
This commit is contained in:
Pavel Roskin 2005-11-29 02:59:27 -05:00 committed by Jeff Garzik
parent ee7ebdf402
commit c08ad1e304

View File

@ -3512,9 +3512,8 @@ static int orinoco_ioctl_setpower(struct net_device *dev,
break; break;
default: default:
err = -EINVAL; err = -EINVAL;
}
if (err)
goto out; goto out;
}
if (prq->flags & IW_POWER_TIMEOUT) { if (prq->flags & IW_POWER_TIMEOUT) {
priv->pm_on = 1; priv->pm_on = 1;