|
@@ -386,7 +386,7 @@ static ssize_t evdev_read(struct file *file, char __user *buffer,
|
|
struct evdev_client *client = file->private_data;
|
|
struct evdev_client *client = file->private_data;
|
|
struct evdev *evdev = client->evdev;
|
|
struct evdev *evdev = client->evdev;
|
|
struct input_event event;
|
|
struct input_event event;
|
|
- int retval;
|
|
|
|
|
|
+ int retval = 0;
|
|
|
|
|
|
if (count < input_event_size())
|
|
if (count < input_event_size())
|
|
return -EINVAL;
|
|
return -EINVAL;
|