projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d394ee
)
libnvdimm, namespace: Drop the repeat assignment for variable dev->parent
author
GuangZhe Fu
<fugz1@lenovo.com>
Tue, 2 Oct 2018 03:35:00 +0000
(23:35 -0400)
committer
Dan Williams
<dan.j.williams@intel.com>
Tue, 2 Oct 2018 04:27:09 +0000
(21:27 -0700)
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>
drivers/nvdimm/namespace_devs.c
patch
|
blob
|
history
diff --git
a/drivers/nvdimm/namespace_devs.c
b/drivers/nvdimm/namespace_devs.c
index 4a4266250c28cfde56b08a2aa7ce04a27d6e6527..681af3a8fd62eead13b17bdcbb6785b96aabe2ac 100644
(file)
--- 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);