[PATCH 5/47] Return 0 from uinput poll if device isn't yet created.

Vojtech Pavlik
2004-07-29T18:22:23Z

ChangeSet@1.1722.54.3, 2004-05-31 12:27:40+02:00, vojtech@suse.cz
input: Return 0 from uinput poll if device isn't yet created.

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>

uinput.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
--- a/drivers/input/misc/uinput.c Thu Jul 29 14:42:09 2004
+++ b/drivers/input/misc/uinput.c Thu Jul 29 14:42:09 2004
@@ -280,7 +280,7 @@
struct uinput_device *udev = file->private_data;

if (!test_bit(UIST_CREATED, &(udev->state)))
- return -ENODEV;
+ return 0;

poll_wait(file, &udev->waitq, wait);