Message ID | 20160623195950.30968-4-jmoyer@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/ndctl/builtin-xaction-namespace.c b/ndctl/builtin-xaction-namespace.c index 8ce7c3e..7411a01 100644 --- a/ndctl/builtin-xaction-namespace.c +++ b/ndctl/builtin-xaction-namespace.c @@ -444,7 +444,8 @@ static int validate_namespace_options(struct ndctl_region *region, ndctl_namespace_get_devname(ndns)); return -EINVAL; } - } else if (p->mode == NDCTL_NS_MODE_MEMORY || NDCTL_NS_MODE_DAX) + } else if (p->mode == NDCTL_NS_MODE_MEMORY || + p->mode == NDCTL_NS_MODE_DAX) p->loc = NDCTL_PFN_LOC_PMEM; /* check if we need, and whether the kernel supports, pfn devices */
Another coverity find. The patch is self-explanatory, I hope. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> --- ndctl/builtin-xaction-namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)