]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm: Remove unnecessary casts of private_data
[net-next-2.6.git] / drivers / gpu / drm / radeon / radeon_ttm.c
index 84c53e41a88fd783d6f7ba32c9155109eb3c95be..a823d8fe54c2ccaac8e63256a75e249bce542994 100644 (file)
@@ -631,7 +631,7 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
                return drm_mmap(filp, vma);
        }
 
-       file_priv = (struct drm_file *)filp->private_data;
+       file_priv = filp->private_data;
        rdev = file_priv->minor->dev->dev_private;
        if (rdev == NULL) {
                return -EINVAL;