Commit 8405e822 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Chris Wright

[PATCH] 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>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d19356b3
......@@ -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