drm/qxl: don't allocate a dma_address array
Subsystems (3)
PATCH 1/1 drm/qxl: don't allocate a dma_address array
That seems to be unused.
Signed-off-by Christian König <[email protected]>
Reviewed-by David Airlie <[email protected]>
--- drivers/gpu/drm/qxl/qxl_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/qxl/qxl_ttm.c +1 -1
@@ -116,7 +116,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, ttm =kzalloc (sizeof (struct ttm_tt ),GFP_KERNEL );if (ttm ==NULL )return NULL ; -if (ttm_dma_tt_init (ttm, bo, page_flags, ttm_cached)) { +if (ttm_tt_init (ttm, bo, page_flags, ttm_cached)) {kfree (ttm);return NULL ; }
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Christian König
That seems to be unused.
Signed-off-by Christian König <[email protected]>Reviewed-by David Airlie <[email protected]>
Dave asked me to pull this into drm-next directly, so I've done that.
For next time around please reference the bug reporter and credit them properly. I've fixed that up while applying.
Cheers, Daniel
Quoted 24 lines
--- drivers/gpu/drm/qxl/qxl_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/qxl/qxl_ttm.c +1
-1@@ -116,7 +116,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, ttm =kzalloc (sizeof (struct ttm_tt ),GFP_KERNEL );if (ttm ==NULL )return NULL ; -if (ttm_dma_tt_init (ttm, bo, page_flags, ttm_cached)) { +if (ttm_tt_init (ttm, bo, page_flags, ttm_cached)) {kfree (ttm);return NULL ; }Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel