]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] orinoco: fix setting power management parameters
authorPavel Roskin <proski@gnu.org>
Tue, 29 Nov 2005 07:59:27 +0000 (02:59 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Dec 2005 07:28:56 +0000 (02:28 -0500)
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>
drivers/net/wireless/orinoco.c

index 488ab06fb79f46e81061f75d72c872121f286ee5..6fd0bf736830f4c7a0694005d32b50613f05818b 100644 (file)
@@ -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;