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 <dongx.yi@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452367 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a95fdad68f
commit
45f0c800bb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user