drm/amdkfd: fix resource_size.cocci warnings
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 26 Sep 2021 07:16:20 +0000 (15:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Sep 2021 21:30:00 +0000 (17:30 -0400)
commit0de5472a01804f43b7c8ddb1132bbfeb8b68674f
treef686c71361f95ddd0fc1fa0a15ef6c941c4dd8ab
parent335aea75b0d95518951cad7c4c676e6f1c02c150
drm/amdkfd: fix resource_size.cocci warnings

Use resource_size function on resource object
instead of explicit computation.

Clean up coccicheck warning:
./drivers/gpu/drm/amd/amdkfd/kfd_migrate.c:905:10-13: ERROR: Missing
resource_size with res

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Amos Kong <kongjianjun@gmail.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c