drm/amdkfd: Use resource_size() helper function
authorDeepak R Varma <drv@mailo.com>
Thu, 22 Dec 2022 21:15:00 +0000 (02:45 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 23:04:24 +0000 (18:04 -0500)
commit9d086e0ddaeb08876f4df3a1485166bfd7483252
treeafb9eb43875bdd0a92c95696175c18d977777982
parent40794dfd20e08118fc1a4fd6d3d885fc65cdda43
drm/amdkfd: Use resource_size() helper function

Use the resource_size() function instead of a open coded computation
resource size. It makes the code more readable.

Issue identified using resource_size.cocci coccinelle semantic patch.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c