diff options
author | GuangZhe Fu <fugz1@lenovo.com> | 2018-10-01 23:35:00 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-10-02 00:27:09 -0400 |
commit | 55781b66936ee4e15cdd6d591b26662ab9d2d847 (patch) | |
tree | fd728bdddc7203c93fd2abda47a905d796afea05 | |
parent | 5d394eee2c102453278d81d9a7cf94c80253486a (diff) |
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: GuangZhe Fu <fugz1@lenovo.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/nvdimm/namespace_devs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index 4a4266250c28..681af3a8fd62 100644 --- a/drivers/nvdimm/namespace_devs.c +++ b/drivers/nvdimm/namespace_devs.c | |||
@@ -2099,7 +2099,6 @@ static struct device *nd_namespace_pmem_create(struct nd_region *nd_region) | |||
2099 | return NULL; | 2099 | return NULL; |
2100 | } | 2100 | } |
2101 | dev_set_name(dev, "namespace%d.%d", nd_region->id, nspm->id); | 2101 | dev_set_name(dev, "namespace%d.%d", nd_region->id, nspm->id); |
2102 | dev->parent = &nd_region->dev; | ||
2103 | dev->groups = nd_namespace_attribute_groups; | 2102 | dev->groups = nd_namespace_attribute_groups; |
2104 | nd_namespace_pmem_set_resource(nd_region, nspm, 0); | 2103 | nd_namespace_pmem_set_resource(nd_region, nspm, 0); |
2105 | 2104 | ||