]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix static checker warning on MES queue type
authorGraham Sider <Graham.Sider@amd.com>
Thu, 12 May 2022 18:34:22 +0000 (14:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2022 14:02:58 +0000 (10:02 -0400)
commitc1a2d842468da6f68038188e225e5fc42eadd2b6
tree86bcaa2b05678303cd5e548b18a7a1b179c22b9b
parentf06a32148120240463a46e91ee0a42f45201cd88
drm/amdkfd: Fix static checker warning on MES queue type

convert_to_mes_queue_type return can be negative, but
queue_input.queue_type is uint32_t. Put return in integer var and cast
to unsigned after negative check.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_device_queue_manager.c