mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
c2b27ef672
commit
abf2a117c6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue