Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24780
b: refs/heads/master
c: 2fab58d
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed Mar 19, 2006
1 parent ec76cc6 commit f002c69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f15e92d702bba47f451bd5f63e170252c6e1bba2
refs/heads/master: 2fab58d1a18c752887c2b9f6ee7b6997ced4a77a
45 changes: 0 additions & 45 deletions trunk/drivers/char/drm/radeon_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1970,11 +1970,6 @@ static int radeon_surface_alloc(DRM_IOCTL_ARGS)
drm_radeon_private_t *dev_priv = dev->dev_private;
drm_radeon_surface_alloc_t alloc;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_COPY_FROM_USER_IOCTL(alloc,
(drm_radeon_surface_alloc_t __user *) data,
sizeof(alloc));
Expand All @@ -1991,11 +1986,6 @@ static int radeon_surface_free(DRM_IOCTL_ARGS)
drm_radeon_private_t *dev_priv = dev->dev_private;
drm_radeon_surface_free_t memfree;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_COPY_FROM_USER_IOCTL(memfree, (drm_radeon_surface_free_t __user *) data,
sizeof(memfree));

Expand Down Expand Up @@ -2131,11 +2121,6 @@ static int radeon_cp_vertex(DRM_IOCTL_ARGS)

LOCK_TEST_WITH_RETURN(dev, filp);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_GET_PRIV_WITH_RETURN(filp_priv, filp);

DRM_COPY_FROM_USER_IOCTL(vertex, (drm_radeon_vertex_t __user *) data,
Expand Down Expand Up @@ -2220,11 +2205,6 @@ static int radeon_cp_indices(DRM_IOCTL_ARGS)

LOCK_TEST_WITH_RETURN(dev, filp);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_GET_PRIV_WITH_RETURN(filp_priv, filp);

DRM_COPY_FROM_USER_IOCTL(elts, (drm_radeon_indices_t __user *) data,
Expand Down Expand Up @@ -2371,11 +2351,6 @@ static int radeon_cp_indirect(DRM_IOCTL_ARGS)

LOCK_TEST_WITH_RETURN(dev, filp);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_COPY_FROM_USER_IOCTL(indirect,
(drm_radeon_indirect_t __user *) data,
sizeof(indirect));
Expand Down Expand Up @@ -2448,11 +2423,6 @@ static int radeon_cp_vertex2(DRM_IOCTL_ARGS)

LOCK_TEST_WITH_RETURN(dev, filp);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_GET_PRIV_WITH_RETURN(filp_priv, filp);

DRM_COPY_FROM_USER_IOCTL(vertex, (drm_radeon_vertex2_t __user *) data,
Expand Down Expand Up @@ -2769,11 +2739,6 @@ static int radeon_cp_cmdbuf(DRM_IOCTL_ARGS)

LOCK_TEST_WITH_RETURN(dev, filp);

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_GET_PRIV_WITH_RETURN(filp_priv, filp);

DRM_COPY_FROM_USER_IOCTL(cmdbuf,
Expand Down Expand Up @@ -2928,11 +2893,6 @@ static int radeon_cp_getparam(DRM_IOCTL_ARGS)
drm_radeon_getparam_t param;
int value;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_COPY_FROM_USER_IOCTL(param, (drm_radeon_getparam_t __user *) data,
sizeof(param));

Expand Down Expand Up @@ -3012,11 +2972,6 @@ static int radeon_cp_setparam(DRM_IOCTL_ARGS)
drm_radeon_setparam_t sp;
struct drm_radeon_driver_file_fields *radeon_priv;

if (!dev_priv) {
DRM_ERROR("%s called with no initialization\n", __FUNCTION__);
return DRM_ERR(EINVAL);
}

DRM_GET_PRIV_WITH_RETURN(filp_priv, filp);

DRM_COPY_FROM_USER_IOCTL(sp, (drm_radeon_setparam_t __user *) data,
Expand Down

0 comments on commit f002c69

Please sign in to comment.