Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Input: iforce - do not return ENOMEM upon successful allocation

parent a3f3f317
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);