summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2012-03-13 12:35:49 +0200
committerDave Airlie <airlied@redhat.com>2012-03-15 09:52:37 +0000
commitd63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77 (patch)
treed396df2e0574c0e4b0d0672f612679ea2d7db091 /drivers
parent6bfc56aa89f963becbafbaeb105b6a84e0eb0db7 (diff)
downloadblackbird-op-linux-d63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77.tar.gz
blackbird-op-linux-d63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77.zip
drm: Use a flexible array member for blob property data
The blob property data is always allocated immediately after the object header. No need for the extra indirection when accessing it, just use a flexible array member. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_crtc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index f5b098e50bb1..d2d9dc52ac89 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2943,7 +2943,6 @@ static struct drm_property_blob *drm_property_create_blob(struct drm_device *dev
return NULL;
}
- blob->data = (void *)((char *)blob + sizeof(struct drm_property_blob));
blob->length = length;
memcpy(blob->data, data, length);
OpenPOWER on IntegriCloud