[PATCH][drm-next] drm/vkms: remove unused pointer vkms_obj
Colin King
colin.king at canonical.com
Tue Aug 28 10:35:42 UTC 2018
From: Colin Ian King <colin.king at canonical.com>
Pointer vkms_obj is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
variable ‘vkms_obj’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
drivers/gpu/drm/vkms/vkms_plane.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c
index c91661631c76..322d8170e769 100644
--- a/drivers/gpu/drm/vkms/vkms_plane.c
+++ b/drivers/gpu/drm/vkms/vkms_plane.c
@@ -128,14 +128,12 @@ static int vkms_prepare_fb(struct drm_plane *plane,
struct drm_plane_state *state)
{
struct drm_gem_object *gem_obj;
- struct vkms_gem_object *vkms_obj;
int ret;
if (!state->fb)
return 0;
gem_obj = drm_gem_fb_get_obj(state->fb, 0);
- vkms_obj = drm_gem_to_vkms_gem(gem_obj);
ret = vkms_gem_vmap(gem_obj);
if (ret)
DRM_ERROR("vmap failed: %d\n", ret);
--
2.17.1
More information about the dri-devel
mailing list