summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-01-02 05:35:11 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-01-02 05:45:52 +0300
commitabf2a117c67a67fbb611913a31109d0ff66ab073 (patch)
tree5c85f59a97ee6f5f87eb1148725320cae0a3cf42 /drivers/input
parentc2b27ef672992a206e5b221b8676972dd840ffa5 (diff)
downloadlinux-abf2a117c67a67fbb611913a31109d0ff66ab073.tar.xz
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/input')
-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 67c207f5b1a1..45ac70eae0aa 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;