From: Christian König Date: Thu, 1 Feb 2018 13:41:37 +0000 (+0100) Subject: drm/radeon: remove extra TT unpopulated check X-Git-Tag: v4.17-rc1~185^2~22^2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30ac9713b455759e501b6fb4f8c69ee831a842ca;p=thirdparty%2Fkernel%2Flinux.git drm/radeon: remove extra TT unpopulated check The subsystem should check that, not the driver. Signed-off-by: Christian König Reviewed-by: Roger He Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index c1e3862a48a4a..c50620aadbd0a 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -728,9 +728,6 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm, struct radeon_device *rdev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); - if (ttm->state != tt_unpopulated) - return 0; - if (gtt && gtt->userptr) { ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); if (!ttm->sg)