From 45f0c800bbec87b5f0ee9a1e187a99a7fda06869 Mon Sep 17 00:00:00 2001 From: yidong0635 Date: Mon, 29 Apr 2019 09:15:13 -0400 Subject: [PATCH] subsystem/nvmf: remove this redundant assert. Here g_num_poll_groups is not less than 1 now, so this assert is redundant. Change-Id: I4fc539480e2b63c8302af57b18d2164b5161b094 Signed-off-by: yidong0635 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452367 Tested-by: SPDK CI Jenkins Reviewed-by: Seth Howell Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- lib/event/subsystems/nvmf/nvmf_tgt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/event/subsystems/nvmf/nvmf_tgt.c b/lib/event/subsystems/nvmf/nvmf_tgt.c index 55696575c..c220d0755 100644 --- a/lib/event/subsystems/nvmf/nvmf_tgt.c +++ b/lib/event/subsystems/nvmf/nvmf_tgt.c @@ -369,7 +369,6 @@ nvmf_tgt_advance_state(void) /* Find the maximum core number */ g_num_poll_groups = spdk_env_get_last_core() + 1; - assert(g_num_poll_groups > 0); g_poll_groups = calloc(g_num_poll_groups, sizeof(*g_poll_groups)); if (g_poll_groups == NULL) {