ChangeSet 1.2181.4.74, 2005/03/24 16:11:11-08:00, [EMAIL PROTECTED]

[PATCH] USB: fix harmful typos in zd1201.c

I was looking around to see why monitor mode wouldn't work using the
zd1201 driver, and spotted these obvious typos.

I think you can safely apply :)

Signed-off-by: Colin Leroy <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/net/zd1201.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/usb/net/zd1201.c b/drivers/usb/net/zd1201.c
--- a/drivers/usb/net/zd1201.c  2005-03-30 13:32:21 -08:00
+++ b/drivers/usb/net/zd1201.c  2005-03-30 13:32:21 -08:00
@@ -673,7 +673,7 @@
                return 0;
 
        err = zd1201_docmd(zd, ZD1201_CMDCODE_ENABLE, 0, 0, 0);
-       if (!err);
+       if (!err)
                zd->mac_enabled = 1;
 
        if (zd->monitor)
@@ -690,7 +690,7 @@
                return 0;
        if (zd->monitor) {
                err = zd1201_setconfig16(zd, ZD1201_RID_PROMISCUOUSMODE, 0);
-               if (err);
+               if (err)
                        return err;
        }
 



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to