loader: Remove deadstore when breaking from a loop
authorCharles Giessen <charles@lunarg.com>
Fri, 21 May 2021 02:33:16 +0000 (20:33 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Thu, 9 Sep 2021 18:15:49 +0000 (12:15 -0600)
Change-Id: Ic72cf396cad918ce255b331fa9a9c3a652b8764d

loader/loader.c

index 49b272f0274fd4664a35043b7d4b25624297d98e..ae61423317dd1cbb0160a0cfd3bf7c61fc81ca11 100644 (file)
@@ -4981,7 +4981,6 @@ VkResult loader_create_device_chain(const VkPhysicalDevice pd, const VkDeviceCre
 
                     // Replace the old struct in the pNext chain with this one.
                     pPrev->pNext = (VkBaseOutStructure *)temp_struct;
-                    pNext = (VkBaseOutStructure *)temp_struct;
                 }
                 break;
             }
@@ -5656,7 +5655,6 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDevice(VkPhysicalDevice physical
 
                     // Replace the old struct in the pNext chain with this one.
                     pPrev->pNext = (VkBaseOutStructure *)temp_struct;
-                    pNext = (VkBaseOutStructure *)temp_struct;
                 }
                 break;
             }