mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +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
@ -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 New Issue
Block a user