From ec7ba877e0bc0a9309f0bd94176089ece1562f45 Mon Sep 17 00:00:00 2001
From: Arda Coskunses <arda@lunarg.com>
Date: Fri, 24 Mar 2017 11:00:52 -0600
Subject: [PATCH] layers: Removing redundant if in unique_objects

Exact same if check performed multiple times.
Removing redundant one

Change-Id: Iff32a724e58a06b4a967ba2632e60cc5b4050238
---
 layers/unique_objects.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/layers/unique_objects.cpp b/layers/unique_objects.cpp
index 30077e74d..f6d78fef2 100644
--- a/layers/unique_objects.cpp
+++ b/layers/unique_objects.cpp
@@ -276,9 +276,6 @@ static inline PFN_vkVoidFunction layer_intercept_proc(const char *name) {
     if (0 == strcmp(name, "vk_layerGetPhysicalDeviceProcAddr")) {
         return (PFN_vkVoidFunction)GetPhysicalDeviceProcAddr;
     }
-    if (0 == strcmp(name, "vk_layerGetPhysicalDeviceProcAddr")) {
-        return (PFN_vkVoidFunction)GetPhysicalDeviceProcAddr;
-    }
     return NULL;
 }
 
-- 
GitLab