Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 030f19f0 authored by Egbert Eich's avatar Egbert Eich Committed by Dave Airlie
Browse files

drm/mgag200: Fix logic in mgag200_bo_pin() (v2)



Add missing 'return 0;'.

v2: Simplified patch as suggested by Dave Airlie <airlied@redhat.com>

Signed-off-by: default avatarEgbert Eich <eich@suse.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 782cf7d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -353,6 +353,7 @@ int mgag200_bo_pin(struct mgag200_bo *bo, u32 pl_flag, u64 *gpu_addr)
		bo->pin_count++;
		bo->pin_count++;
		if (gpu_addr)
		if (gpu_addr)
			*gpu_addr = mgag200_bo_gpu_offset(bo);
			*gpu_addr = mgag200_bo_gpu_offset(bo);
		return 0;
	}
	}


	mgag200_ttm_placement(bo, pl_flag);
	mgag200_ttm_placement(bo, pl_flag);