Skip to contentSkip to conversation

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

PATCH In review GuangZhe Fu 2 participants 2 messages Oct 2, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

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

From: GuangZhe Fu <[email protected]>

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

---
 drivers/nvdimm/namespace_devs.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvdimm/namespace_devs.c +0 -1
index cb322f2..db0abf1 100644
@@ -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);
 
Signature · 7 lines
2.9.5


_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm