diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-01-30 03:50:52 +0100 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-01-30 03:50:52 +0100 |
commit | 5ae08f80ec5b2b08dd2f76a166140dd156fb31a1 (patch) | |
tree | 89d5818c87592b0aad4f1b80edb224dc9a75bb24 | |
parent | Input: psmouse - set name for Genius mice (diff) | |
download | linux-5ae08f80ec5b2b08dd2f76a166140dd156fb31a1.tar.xz linux-5ae08f80ec5b2b08dd2f76a166140dd156fb31a1.zip |
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>
-rw-r--r-- | drivers/input/joystick/iforce/iforce-main.c | 2 |
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); |