summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-01-01 18:35:11 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-01-01 18:45:52 -0800
commitabf2a117c67a67fbb611913a31109d0ff66ab073 (patch)
tree5c85f59a97ee6f5f87eb1148725320cae0a3cf42 /drivers
parentc2b27ef672992a206e5b221b8676972dd840ffa5 (diff)
downloadop-kernel-dev-abf2a117c67a67fbb611913a31109d0ff66ab073.zip
op-kernel-dev-abf2a117c67a67fbb611913a31109d0ff66ab073.tar.gz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/joystick/gf2k.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud