This condition was missed in a previous commit with the same title.

Signed-off-by: Felix Kuehling <felix.kuehl...@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c 
b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
index 66852de..f16ac2b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
@@ -307,9 +307,7 @@ int kfd_init_apertures(struct kfd_process *process)
        struct kfd_process_device *pdd;
 
        /*Iterating over all devices*/
-       while (kfd_topology_enum_kfd_devices(id, &dev) == 0 &&
-               id < NUM_OF_SUPPORTED_GPUS) {
-
+       while (kfd_topology_enum_kfd_devices(id, &dev) == 0) {
                if (!dev) {
                        id++; /* Skip non GPU devices */
                        continue;
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to