]> git.hungrycats.org Git - linux/commitdiff
Minor cleanup in evdev.c
authorVojtech Pavlik <vojtech@twilight.ucw.cz>
Wed, 3 Jul 2002 23:28:47 +0000 (01:28 +0200)
committerVojtech Pavlik <vojtech@twilight.ucw.cz>
Wed, 3 Jul 2002 23:28:47 +0000 (01:28 +0200)
drivers/input/evdev.c

index af76d0c921dfb3134bf7dd19a6c31b2b7f9d3af9..0a2f930cf585904253d4ad00f353bcc0630f26f2 100644 (file)
@@ -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: