diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-02-08 14:02:21 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-30 19:30:34 -0400 |
commit | 2c9b25c59796e9e5f01193d15dde501e9af59714 (patch) | |
tree | e1feb1688069d757c4caf61bdabb273058c0bc1a /drivers/gpu/drm/qxl | |
parent | b87577b7c768683736eea28f70779e8c75b4df62 (diff) |
drm: qxl: Remove unused device pointer
Remove occurrences of unused struct qxl_device pointer in functions
qxl_ttm_fault() and qxl_init_mem_type().
Detected by Coverity: CID 1019128, CID 1019129.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index d52c27527b9a..71a1baeac14e 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c | |||
@@ -109,13 +109,11 @@ static const struct vm_operations_struct *ttm_vm_ops; | |||
109 | static int qxl_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | 109 | static int qxl_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) |
110 | { | 110 | { |
111 | struct ttm_buffer_object *bo; | 111 | struct ttm_buffer_object *bo; |
112 | struct qxl_device *qdev; | ||
113 | int r; | 112 | int r; |
114 | 113 | ||
115 | bo = (struct ttm_buffer_object *)vma->vm_private_data; | 114 | bo = (struct ttm_buffer_object *)vma->vm_private_data; |
116 | if (bo == NULL) | 115 | if (bo == NULL) |
117 | return VM_FAULT_NOPAGE; | 116 | return VM_FAULT_NOPAGE; |
118 | qdev = qxl_get_qdev(bo->bdev); | ||
119 | r = ttm_vm_ops->fault(vma, vmf); | 117 | r = ttm_vm_ops->fault(vma, vmf); |
120 | return r; | 118 | return r; |
121 | } | 119 | } |
@@ -162,10 +160,6 @@ static int qxl_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) | |||
162 | static int qxl_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, | 160 | static int qxl_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, |
163 | struct ttm_mem_type_manager *man) | 161 | struct ttm_mem_type_manager *man) |
164 | { | 162 | { |
165 | struct qxl_device *qdev; | ||
166 | |||
167 | qdev = qxl_get_qdev(bdev); | ||
168 | |||
169 | switch (type) { | 163 | switch (type) { |
170 | case TTM_PL_SYSTEM: | 164 | case TTM_PL_SYSTEM: |
171 | /* System memory */ | 165 | /* System memory */ |