aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-02-02 00:09:04 -0500
committerChris Wright <chrisw@sous-sol.org>2006-02-09 23:20:09 -0800
commit8405e822942c20bd1a03a61c9fbe6099940fd21c (patch)
tree5a53c7110eef556074bdab165250b4bf21d22738
parentd19356b3eea5f7360bf4efb48934022b5ddc3a05 (diff)
downloadlinux-linaro-stable-8405e822942c20bd1a03a61c9fbe6099940fd21c.tar.gz
[PATCH] Input: iforce - do not return ENOMEM upon successful allocation
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/input/joystick/iforce/iforce-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/iforce/iforce-main.c b/drivers/input/joystick/iforce/iforce-main.c
index 64b9c31c47fc..b6bc04998047 100644
--- a/drivers/input/joystick/iforce/iforce-main.c
+++ b/drivers/input/joystick/iforce/iforce-main.c
@@ -345,7 +345,7 @@ int iforce_init_device(struct iforce *iforce)
int i;
input_dev = input_allocate_device();
- if (input_dev)
+ if (!input_dev)
return -ENOMEM;
init_waitqueue_head(&iforce->wait);