OSDN Git Service

drm/amdkfd: use max() and min() to make code cleaner
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Wed, 15 Dec 2021 08:52:26 +0000 (08:52 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Dec 2021 19:08:20 +0000 (14:08 -0500)
commitd999bc81ac3872a8543c4afbce30e0d46b4bb9e1
tree786843f46cc27a3dd34f20c67f50ce3bac2ffcba
parentd4c2933fb8eece9b2703e9ddd4aa8f1a77f22450
drm/amdkfd: use max() and min() to make code cleaner

Use max() and min() in order to make code cleaner.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c