|
@@ -332,7 +332,7 @@ static ssize_t evdev_write(struct file *file, const 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;
|