Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55781b66 authored by GuangZhe Fu's avatar GuangZhe Fu Committed by Dan Williams
Browse files

libnvdimm, namespace: Drop the repeat assignment for variable dev->parent



The variable dev-parent is assigned twice with the same &nd_region->dev.
I think we could drop the second one.

Signed-off-by: default avatarGuangZhe Fu <fugz1@lenovo.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 5d394eee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2099,7 +2099,6 @@ static struct device *nd_namespace_pmem_create(struct nd_region *nd_region)
		return NULL;
	}
	dev_set_name(dev, "namespace%d.%d", nd_region->id, nspm->id);
	dev->parent = &nd_region->dev;
	dev->groups = nd_namespace_attribute_groups;
	nd_namespace_pmem_set_resource(nd_region, nspm, 0);