nvmf_tgt: remove unnecessary namespace count check
spdk_nvmf_subsystem_add_ns() already checks to see if there is space for the new namespace. Change-Id: I9c66311a4f1eb289e87089ab7fa04e8c05b68631 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/363305 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
bbfcb0943b
commit
83da13f1ec
@ -577,10 +577,6 @@ spdk_nvmf_construct_subsystem(const char *name,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (num_devs > MAX_VIRTUAL_NAMESPACE) {
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (spdk_nvmf_subsystem_set_sn(subsystem, sn)) {
|
if (spdk_nvmf_subsystem_set_sn(subsystem, sn)) {
|
||||||
SPDK_ERRLOG("Subsystem %s: invalid serial number '%s'\n", name, sn);
|
SPDK_ERRLOG("Subsystem %s: invalid serial number '%s'\n", name, sn);
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user