Skip to content

Commit 317a992

Browse files
committed
nfit/ars: Remove ars_start_flags
The ars_start_flags property of 'struct acpi_nfit_desc' is no longer used since ARS_REQ_SHORT and ARS_REQ_LONG were added. Reviewed-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent fa3ed4d commit 317a992

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

drivers/acpi/nfit/core.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,11 +2651,11 @@ static int ars_continue(struct acpi_nfit_desc *acpi_desc)
26512651
struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc;
26522652
struct nd_cmd_ars_status *ars_status = acpi_desc->ars_status;
26532653

2654-
memset(&ars_start, 0, sizeof(ars_start));
2655-
ars_start.address = ars_status->restart_address;
2656-
ars_start.length = ars_status->restart_length;
2657-
ars_start.type = ars_status->type;
2658-
ars_start.flags = acpi_desc->ars_start_flags;
2654+
ars_start = (struct nd_cmd_ars_start) {
2655+
.address = ars_status->restart_address,
2656+
.length = ars_status->restart_length,
2657+
.type = ars_status->type,
2658+
};
26592659
rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start,
26602660
sizeof(ars_start), &cmd_rc);
26612661
if (rc < 0)

drivers/acpi/nfit/nfit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ struct acpi_nfit_desc {
223223
struct list_head idts;
224224
struct nvdimm_bus *nvdimm_bus;
225225
struct device *dev;
226-
u8 ars_start_flags;
227226
struct nd_cmd_ars_status *ars_status;
228227
struct nfit_spa *scrub_spa;
229228
struct delayed_work dwork;

0 commit comments

Comments
 (0)