diff options
| author | Vojtech Pavlik <vojtech@twilight.ucw.cz> | 2002-07-04 01:28:47 +0200 |
|---|---|---|
| committer | Vojtech Pavlik <vojtech@twilight.ucw.cz> | 2002-07-04 01:28:47 +0200 |
| commit | b8902f1febfd384f39e7603e0834dad64f2ca342 (patch) | |
| tree | 8a054d1170b925779e9d763651149f134000abfa | |
| parent | 156a51e2f200fcd7d73a10a5dc9742d57e27851a (diff) | |
Minor cleanup in 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: |
