]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: use swap macro in ttm_bo_handle_move_mem
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 9 Jul 2018 15:24:47 +0000 (10:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 19:18:08 +0000 (14:18 -0500)
commitb7f0b59ef32633f53490aad4cbf42eb66a0073e4
treeef733f38e65bd343f7504c0982e9fbb2e8bf25af
parent98360572ce4978f1aa4c871988c5d8dee5fa7dd3
drm/ttm: use swap macro in ttm_bo_handle_move_mem

Make use of the swap macro and remove unnecessary variable *tmp_mem*.
This makes the code easier to read and maintain. Also, reduces the
stack usage.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c