]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, namespace: Drop the repeat assignment for variable dev->parent
authorGuangZhe Fu <fugz1@lenovo.com>
Tue, 2 Oct 2018 03:35:00 +0000 (23:35 -0400)
committerDan Williams <dan.j.williams@intel.com>
Tue, 2 Oct 2018 04:27:09 +0000 (21:27 -0700)
commit992dfc660492e8c15f08edaa213670224cf94a21
treefd728bdddc7203c93fd2abda47a905d796afea05
parent1ea67b055352d5f1758e731e96833dff370f7ddb
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>
drivers/nvdimm/namespace_devs.c