Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88e3cb07 authored by Al Viro's avatar Al Viro
Browse files

drm_compat_ioctl(): tidy up a bit



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 87d3ce11
Loading
Loading
Loading
Loading
+9 −13
Original line number Diff line number Diff line
@@ -951,6 +951,7 @@ static struct {
long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
	unsigned int nr = DRM_IOCTL_NR(cmd);
	struct drm_file *file_priv = filp->private_data;
	drm_ioctl_compat_t *fn;
	int ret;

@@ -965,8 +966,6 @@ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
	if (!fn)
		return drm_ioctl(filp, cmd, arg);

	if (drm_compat_ioctls[nr].name) {
		struct drm_file *file_priv = filp->private_data;
	DRM_DEBUG("pid=%d, dev=0x%lx, auth=%d, %s\n",
		  task_pid_nr(current),
		  (long)old_encode_dev(file_priv->minor->kdev->devt),
@@ -975,9 +974,6 @@ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
	ret = (*fn)(filp, cmd, arg);
	if (ret)
		DRM_DEBUG("ret = %d\n", ret);
	} else {
		ret = (*fn) (filp, cmd, arg);
	}
	return ret;
}
EXPORT_SYMBOL(drm_compat_ioctl);