map: Fix a coverity MAP dead-code issue. 97/23797/2
authorJon Loeliger <jdl@netgate.com>
Wed, 4 Dec 2019 17:46:52 +0000 (11:46 -0600)
committerNeale Ranns <nranns@cisco.com>
Wed, 4 Dec 2019 21:11:49 +0000 (21:11 +0000)
Type: fix

Change-Id: I5467bbe3b25b1ea3fb44157abe6e7bfb3f191e77
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/plugins/map/map.c

index a8288a5..bc9b3df 100644 (file)
@@ -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);
 }