提交 5248092e 编写于 作者: Y YueHaibing 提交者: Daniel Vetter

drm: Remove set but not used variable 'config'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/drm_plane.c: In function 'drm_mode_getplane_res':
drivers/gpu/drm/drm_plane.c:475:26: warning:
 variable 'config' set but not used [-Wunused-but-set-variable]
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1536646814-186429-1-git-send-email-yuehaibing@huawei.com
上级 7f3ef5de
...@@ -472,7 +472,6 @@ int drm_mode_getplane_res(struct drm_device *dev, void *data, ...@@ -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, ...@@ -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);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册