summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuangZhe Fu <fugz1@lenovo.com>2018-10-02 05:35:00 +0200
committerDan Williams <dan.j.williams@intel.com>2018-10-02 06:27:09 +0200
commit55781b66936ee4e15cdd6d591b26662ab9d2d847 (patch)
treefd728bdddc7203c93fd2abda47a905d796afea05 /drivers
parentlibnvdimm, region: Fail badblocks listing for inactive regions (diff)
downloadlinux-55781b66936ee4e15cdd6d591b26662ab9d2d847.tar.xz
linux-55781b66936ee4e15cdd6d591b26662ab9d2d847.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvdimm/namespace_devs.c1
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)
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);