Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abf2a117 authored by Roel Kluin's avatar Roel Kluin Committed by Dmitry Torokhov
Browse files

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



This always evaluates to true.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c2b27ef6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;