]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display/dc/core/dc_resource: use swap macro in rect_swap_helper
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 10 Nov 2017 22:38:13 +0000 (16:38 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:56 +0000 (12:47 -0500)
commita9f0f35a79a25ee964ed481c6d84c4e382c24813
tree765a08a55b9d28ac36f4e1b307c3e497095ac54d
parentaf21752e211f1c84e46b25b2c27c8c9b654dcbb9
drm/amd/display/dc/core/dc_resource: use swap macro in rect_swap_helper

Make use of the swap macro instead of _manually_ swapping values
and remove unnecessary variable temp.

This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c