From 92e9caea3b1bea837b4061a8328361ed166e5eab Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 28 Jan 2021 11:38:16 +0000 Subject: [PATCH] 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 Change-Id: I3879e752036a7dd49fff7e16dc6d9ea02563aa7a --- src/plugins/map/map_api.c | 6 ------ 1 file changed, 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, ({ -- 2.16.6