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)
commit55781b66936ee4e15cdd6d591b26662ab9d2d847
treefd728bdddc7203c93fd2abda47a905d796afea05
parent5d394eee2c102453278d81d9a7cf94c80253486a
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