The `nvme_nsid()` function returns '-1' (FFFFFFFFh) when the given
namespace is NULL. Since FFFFFFFFh is actually a valid namespace
identifier (the "broadcast" value), change this to be '0' since that
actually *is* the invalid value.
Signed-off-by: Klaus Jensen <[email protected]>
Reviewed-by: Gollu Appalanaidu <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
return ns->params.nsid;
}
- return -1;
+ return 0;
}
static inline bool nvme_ns_shared(NvmeNamespace *ns)