|
@@ -472,7 +472,6 @@ int drm_mode_getplane_res(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv)
|
|
struct drm_file *file_priv)
|
|
{
|
|
{
|
|
struct drm_mode_get_plane_res *plane_resp = data;
|
|
struct drm_mode_get_plane_res *plane_resp = data;
|
|
- struct drm_mode_config *config;
|
|
|
|
struct drm_plane *plane;
|
|
struct drm_plane *plane;
|
|
uint32_t __user *plane_ptr;
|
|
uint32_t __user *plane_ptr;
|
|
int count = 0;
|
|
int count = 0;
|
|
@@ -480,7 +479,6 @@ int drm_mode_getplane_res(struct drm_device *dev, void *data,
|
|
if (!drm_core_check_feature(dev, DRIVER_MODESET))
|
|
if (!drm_core_check_feature(dev, DRIVER_MODESET))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- config = &dev->mode_config;
|
|
|
|
plane_ptr = u64_to_user_ptr(plane_resp->plane_id_ptr);
|
|
plane_ptr = u64_to_user_ptr(plane_resp->plane_id_ptr);
|
|
|
|
|
|
/*
|
|
/*
|