Message ID | 1458311312-23330-1-git-send-email-colin.king@canonical.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
diff --git a/tools/power/acpi/tools/acpidbg/acpidbg.c b/tools/power/acpi/tools/acpidbg/acpidbg.c index d070fcc..38ccac9 100644 --- a/tools/power/acpi/tools/acpidbg/acpidbg.c +++ b/tools/power/acpi/tools/acpidbg/acpidbg.c @@ -429,9 +429,8 @@ int main(int argc, char **argv) acpi_aml_flush(fd); acpi_aml_loop(fd); + close(fd); exit: - if (fd < 0) - close(fd); if (acpi_aml_batch_cmd) free(acpi_aml_batch_cmd); return ret;