Merge branch 'for-4.16/nfit' into libnvdimm-for-next
[sfrench/cifs-2.6.git] / drivers / nvdimm / namespace_devs.c
index bb3ba8cf24d4503801f3534f01a0e1f86cb7a641..658ada497be0a43f0a9df0d4a71aeaaa8df13bdb 100644 (file)
@@ -2408,7 +2408,7 @@ static struct device **scan_labels(struct nd_region *nd_region)
 
 static struct device **create_namespaces(struct nd_region *nd_region)
 {
-       struct nd_mapping *nd_mapping = &nd_region->mapping[0];
+       struct nd_mapping *nd_mapping;
        struct device **devs;
        int i;