From be4511d318291d9a0d3888faf1d32857194e2f3b Mon Sep 17 00:00:00 2001
From: Jon Loeliger <jdl@netgate.com>
Date: Wed, 4 Dec 2019 11:46:52 -0600
Subject: map: Fix a coverity MAP dead-code issue.

Type: fix

Change-Id: I5467bbe3b25b1ea3fb44157abe6e7bfb3f191e77
Signed-off-by: Jon Loeliger <jdl@netgate.com>
(cherry picked from commit 3aae3dc7acddbe2f46de785b50c3358b7d3e0acc)
---
 src/plugins/map/map.c | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'src')

diff --git a/src/plugins/map/map.c b/src/plugins/map/map.c
index e0addf97c41..a214228bd55 100644
--- a/src/plugins/map/map.c
+++ b/src/plugins/map/map.c
@@ -97,9 +97,6 @@ map_free_extras (u32 map_domain_index)
     return;
 
   de = vec_elt_at_index (mm->domain_extras, map_domain_index);
-  if (!de)
-    return;
-
   vec_free (de->tag);
 }
 
-- 
cgit 1.2.3-korg