acpi/nfit: fix cmd_rc for acpi_nfit_ctl to always return a value
authorDave Jiang <dave.jiang@intel.com>
Thu, 28 Jun 2018 16:56:55 +0000 (09:56 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 30 Jun 2018 17:43:39 +0000 (10:43 -0700)
commitc1985cefd844e26bd19673a6df8d8f0b1918c2db
tree87addc030de43d9f993ea8cc284285ff019ca4dd
parent5a14e91d559aee5bdb0e002e1153fd9c4338a29e
acpi/nfit: fix cmd_rc for acpi_nfit_ctl to always return a value

cmd_rc is passed in by reference to the acpi_nfit_ctl() function and the
caller expects a value returned. However, when the package is pass through
via the ND_CMD_CALL command, cmd_rc is not touched. Make sure cmd_rc is
always set.

Fixes: aef253382266 ("libnvdimm, nfit: centralize command status translation")

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c