drm/amdgpu: use clamp() in amdgpu_vm_adjust_size()
When it needs to get a value within a certain interval, using clamp() makes the code easier to understand than min(max()). Reviewed-by:Christian König <christian.koenig@amd.com> Signed-off-by:
Li Zetao <lizetao1@huawei.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
Please register or sign in to comment