Commit b8902f1f authored by Vojtech Pavlik's avatar Vojtech Pavlik

Minor cleanup in evdev.c

parent 156a51e2
...@@ -306,8 +306,8 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -306,8 +306,8 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
else return -ENOSYS; else return -ENOSYS;
case EVIOCGEFFECTS: case EVIOCGEFFECTS:
if (retval = put_user(dev->ff_effects_max, (int*) arg)) if ((retval = put_user(dev->ff_effects_max, (int*) arg)))
return -EFAULT; return retval;
return 0; return 0;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment