]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Simplify ttm_eu_reserve_buffers()
authorTom St Denis <tom.stdenis@amd.com>
Fri, 26 Jan 2018 15:13:42 +0000 (10:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:00 +0000 (14:19 -0500)
commit002b49b97b519f5d73ad2399d6e811ba95b7b820
tree785f8fbc6f03127f0a8272ee9b4a4def4e480b62
parentba54ae49130d95db0e5f903b3bb9b995af08a4dd
drm/ttm: Simplify ttm_eu_reserve_buffers()

Hoist the comparison of the ret to -EDEADLK above
the two code paths to simplify the function.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_execbuf_util.c