mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
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:
parent
a3f3f31766
commit
5ae08f80ec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue