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>
This commit is contained in:
Alexey Dobriyan 2006-01-29 21:50:52 -05:00 committed by Dmitry Torokhov
parent a3f3f31766
commit 5ae08f80ec

View File

@ -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);