diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-01-15 11:09:46 +0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-01-14 18:59:08 -0800 |
commit | b4fe30e45a660efa8f122070fc7173715d0e1d00 (patch) | |
tree | 1a3496dcc6aa3823497e9ced479510f8220910fc /drivers/acpi | |
parent | 0919871ac37fdcf46c7657da0f1742efe096b399 (diff) | |
download | talos-op-linux-b4fe30e45a660efa8f122070fc7173715d0e1d00.tar.gz talos-op-linux-b4fe30e45a660efa8f122070fc7173715d0e1d00.zip |
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/nfit/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 790691d9a982..5143e11e3b0f 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -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); if (!nd_set) return -ENOMEM; - ndr_desc->nd_set = nd_set; guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid); info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL); |