Bläddra i källkod

Input: gf2k - fix &&/|| confusion in gf2k_connect()

This always evaluates to true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Roel Kluin 15 år sedan
förälder
incheckning
abf2a117c6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      drivers/input/joystick/gf2k.c

+ 1 - 1
drivers/input/joystick/gf2k.c

@@ -277,7 +277,7 @@ static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv)
 	}
 	}
 
 
 #ifdef RESET_WORKS
 #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)))) {
 	    (gf2k->id != (GB(31,2,0) | GB(27,3,2) | GB(24,3,5)))) {
 		err = -ENODEV;
 		err = -ENODEV;
 		goto fail2;
 		goto fail2;