diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-11 02:20:14 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-09-11 03:34:27 -0400 |
commit | 5248092ea47d378a63b27a2ee0c361c9448958e9 (patch) | |
tree | 1bc1a6cc168123f2a9e0a542e546d0751a37a65e | |
parent | 7f3ef5dedb146e3d5063b6845781ad1bb59b92b5 (diff) |
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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1536646814-186429-1-git-send-email-yuehaibing@huawei.com
-rw-r--r-- | drivers/gpu/drm/drm_plane.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index 36bf3fe9ad21..4a72c6829d73 100644 --- a/drivers/gpu/drm/drm_plane.c +++ b/drivers/gpu/drm/drm_plane.c | |||
@@ -472,7 +472,6 @@ int drm_mode_getplane_res(struct drm_device *dev, void *data, | |||
472 | struct drm_file *file_priv) | 472 | struct drm_file *file_priv) |
473 | { | 473 | { |
474 | struct drm_mode_get_plane_res *plane_resp = data; | 474 | struct drm_mode_get_plane_res *plane_resp = data; |
475 | struct drm_mode_config *config; | ||
476 | struct drm_plane *plane; | 475 | struct drm_plane *plane; |
477 | uint32_t __user *plane_ptr; | 476 | uint32_t __user *plane_ptr; |
478 | int count = 0; | 477 | int count = 0; |
@@ -480,7 +479,6 @@ int drm_mode_getplane_res(struct drm_device *dev, void *data, | |||
480 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) | 479 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) |
481 | return -EINVAL; | 480 | return -EINVAL; |
482 | 481 | ||
483 | config = &dev->mode_config; | ||
484 | plane_ptr = u64_to_user_ptr(plane_resp->plane_id_ptr); | 482 | plane_ptr = u64_to_user_ptr(plane_resp->plane_id_ptr); |
485 | 483 | ||
486 | /* | 484 | /* |