Commit 5ae08f80 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Dmitry Torokhov

Input: iforce - do not return ENOMEM upon successful allocation

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a3f3f317
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment