summaryrefslogtreecommitdiffstats
path: root/src/plugins/map/map_api.c
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-01-28 11:38:16 +0000
committerOle Tr�an <otroan@employees.org>2021-02-04 14:25:52 +0000
commit92e9caea3b1bea837b4061a8328361ed166e5eab (patch)
treee6c76867f4d1cccca7c1753427392c1b682ad429 /src/plugins/map/map_api.c
parent44db1caefbf5067b0cf0073299c9f21265331412 (diff)
api: Fold the empty pool check into the main macro
Type: improvement the empty pool chekc is always required, so make it alwayd happen. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I3879e752036a7dd49fff7e16dc6d9ea02563aa7a
Diffstat (limited to 'src/plugins/map/map_api.c')
-rw-r--r--src/plugins/map/map_api.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/map/map_api.c b/src/plugins/map/map_api.c
index bcc0c27c742..f81216dddbd 100644
--- a/src/plugins/map/map_api.c
+++ b/src/plugins/map/map_api.c
@@ -152,12 +152,6 @@ vl_api_map_domains_get_t_handler (vl_api_map_domains_get_t * mp)
i32 rv = 0;
- if (pool_elts (mm->domains) == 0)
- {
- REPLY_MACRO (VL_API_MAP_DOMAINS_GET_REPLY);
- return;
- }
-
/* *INDENT-OFF* */
REPLY_AND_DETAILS_MACRO (VL_API_MAP_DOMAINS_GET_REPLY, mm->domains,
({