diff options
-rw-r--r-- | drivers/acpi/nfit/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index d15814e1727f..471402cee1f1 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c | |||
@@ -408,6 +408,7 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, | |||
408 | const guid_t *guid; | 408 | const guid_t *guid; |
409 | int rc, i; | 409 | int rc, i; |
410 | 410 | ||
411 | *cmd_rc = -EINVAL; | ||
411 | func = cmd; | 412 | func = cmd; |
412 | if (cmd == ND_CMD_CALL) { | 413 | if (cmd == ND_CMD_CALL) { |
413 | call_pkg = buf; | 414 | call_pkg = buf; |
@@ -518,6 +519,7 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, | |||
518 | * If we return an error (like elsewhere) then caller wouldn't | 519 | * If we return an error (like elsewhere) then caller wouldn't |
519 | * be able to rely upon data returned to make calculation. | 520 | * be able to rely upon data returned to make calculation. |
520 | */ | 521 | */ |
522 | *cmd_rc = 0; | ||
521 | return 0; | 523 | return 0; |
522 | } | 524 | } |
523 | 525 | ||