diff -Naru a/drivers/usb/net/zd1201.c b/drivers/usb/net/zd1201.c --- a/drivers/usb/net/zd1201.c 2005-04-14 03:20:24 -07:00 +++ b/drivers/usb/net/zd1201.c 2005-04-14 03:20:24 -07: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 is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/03/24 16:11:11-08:00 colin@colino.net # [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 # Signed-off-by: Greg Kroah-Hartman # # drivers/usb/net/zd1201.c # 2005/03/24 03:24:41-08:00 colin@colino.net +2 -2 # USB: fix harmful typos in zd1201.c #