diff --git a/app/nvmf_tgt/conf.c b/app/nvmf_tgt/conf.c index 5aaaca61b..5dcbcd213 100644 --- a/app/nvmf_tgt/conf.c +++ b/app/nvmf_tgt/conf.c @@ -577,10 +577,6 @@ spdk_nvmf_construct_subsystem(const char *name, goto error; } - if (num_devs > MAX_VIRTUAL_NAMESPACE) { - goto error; - } - if (spdk_nvmf_subsystem_set_sn(subsystem, sn)) { SPDK_ERRLOG("Subsystem %s: invalid serial number '%s'\n", name, sn); goto error;