mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
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>
This commit is contained in:
parent
b87577b7c7
commit
2c9b25c597
@ -109,13 +109,11 @@ static const struct vm_operations_struct *ttm_vm_ops;
|
|||||||
static int qxl_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
static int qxl_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||||
{
|
{
|
||||||
struct ttm_buffer_object *bo;
|
struct ttm_buffer_object *bo;
|
||||||
struct qxl_device *qdev;
|
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
bo = (struct ttm_buffer_object *)vma->vm_private_data;
|
bo = (struct ttm_buffer_object *)vma->vm_private_data;
|
||||||
if (bo == NULL)
|
if (bo == NULL)
|
||||||
return VM_FAULT_NOPAGE;
|
return VM_FAULT_NOPAGE;
|
||||||
qdev = qxl_get_qdev(bo->bdev);
|
|
||||||
r = ttm_vm_ops->fault(vma, vmf);
|
r = ttm_vm_ops->fault(vma, vmf);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
@ -162,10 +160,6 @@ static int qxl_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags)
|
|||||||
static int qxl_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
|
static int qxl_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
|
||||||
struct ttm_mem_type_manager *man)
|
struct ttm_mem_type_manager *man)
|
||||||
{
|
{
|
||||||
struct qxl_device *qdev;
|
|
||||||
|
|
||||||
qdev = qxl_get_qdev(bdev);
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case TTM_PL_SYSTEM:
|
case TTM_PL_SYSTEM:
|
||||||
/* System memory */
|
/* System memory */
|
||||||
|
Loading…
Reference in New Issue
Block a user