Commit b4fe30e45a660efa8f122070fc7173715d0e1d00

Authored by Wei Yang
Committed by Dan Williams
1 parent 0919871ac3

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/acpi/nfit/core.c
... ... @@ -2226,7 +2226,6 @@
2226 2226 nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
2227 2227 if (!nd_set)
2228 2228 return -ENOMEM;
2229   - ndr_desc->nd_set = nd_set;
2230 2229 guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
2231 2230  
2232 2231 info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);