diff options
Diffstat (limited to 'drivers/input/evdev.c')
| -rw-r--r-- | drivers/input/evdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index af76d0c921df..0a2f930cf585 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -306,8 +306,8 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, else return -ENOSYS; case EVIOCGEFFECTS: - if (retval = put_user(dev->ff_effects_max, (int*) arg)) - return -EFAULT; + if ((retval = put_user(dev->ff_effects_max, (int*) arg))) + return retval; return 0; default: |
