X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Finput%2Fevdev.c;h=f55a3cff3248a0e0cd154160cb42d6139e295db0;hb=ff114714a1ffc8d4824aae0ee8dcd1851d3203d0;hp=4cf25347b01546b1578e0b9987d6717c38db0366;hpb=219f358e0ba9a98640341e030533089860af1cc6;p=pandora-kernel.git diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 4cf25347b015..f55a3cff3248 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -126,19 +126,14 @@ static int evdev_flush(struct file *file, fl_owner_t id) { struct evdev_client *client = file->private_data; struct evdev *evdev = client->evdev; - int retval; - retval = mutex_lock_interruptible(&evdev->mutex); - if (retval) - return retval; + mutex_lock(&evdev->mutex); - if (!evdev->exist) - retval = -ENODEV; - else - retval = input_flush_device(&evdev->handle, file); + if (evdev->exist) + input_flush_device(&evdev->handle, file); mutex_unlock(&evdev->mutex); - return retval; + return 0; } static void evdev_free(struct device *dev)