mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +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