acpi/nfit: Remove duplicate set nd_set in acpi_nfit_init_interleave_set()
We allocate nd_set in acpi_nfit_init_interleave_set() and assignn it to ndr_desc, while the assignment is done twice in this function. This patch removes the first assignment. No functional change. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
0919871ac3
commit
b4fe30e45a
|
@ -2226,7 +2226,6 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc,
|
||||||
nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
|
nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
|
||||||
if (!nd_set)
|
if (!nd_set)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
ndr_desc->nd_set = nd_set;
|
|
||||||
guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
|
guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
|
||||||
|
|
||||||
info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
|
info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in New Issue