diff mbox

Input: &&/|| confusion in gf2k_connect()?

Message ID 4B3C96DF.8060903@gmail.com (mailing list archive)
State Accepted
Commit abf2a117c67a67fbb611913a31109d0ff66ab073
Headers show

Commit Message

Roel Kluin Dec. 31, 2009, 12:19 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/joystick/gf2k.c b/drivers/input/joystick/gf2k.c
index 67c207f..45ac70e 100644
--- a/drivers/input/joystick/gf2k.c
+++ b/drivers/input/joystick/gf2k.c
@@ -277,7 +277,7 @@  static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv)
 	}
 
 #ifdef RESET_WORKS
-	if ((gf2k->id != (GB(19,2,0) | GB(15,3,2) | GB(12,3,5))) ||
+	if ((gf2k->id != (GB(19,2,0) | GB(15,3,2) | GB(12,3,5))) &&
 	    (gf2k->id != (GB(31,2,0) | GB(27,3,2) | GB(24,3,5)))) {
 		err = -ENODEV;
 		goto fail2;