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,
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:
......
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