Skip to content

Commit

Permalink
acpi: drop unused code
Browse files Browse the repository at this point in the history
Recent changes left acpi_get_hex unused,
and clag is unhappy about it:
    error: unused function 'acpi_get_hex'

Drop it, as well as some unused macros.

Signer-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
mstsirkin committed Mar 8, 2015
1 parent 56521fb commit 59ea3e7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions hw/i386/acpi-build.c
Expand Up @@ -467,20 +467,8 @@ build_madt(GArray *table_data, GArray *linker, AcpiCpuInfo *cpu,
table_data->len - madt_start, 1);
}

/* Encode a hex value */
static inline char acpi_get_hex(uint32_t val)
{
val &= 0x0f;
return (val <= 9) ? ('0' + val) : ('A' + val - 10);
}


#define ACPI_SSDT_SIGNATURE 0x54445353 /* SSDT */
#define ACPI_SSDT_HEADER_LENGTH 36

#include "hw/i386/ssdt-tpm.hex"


/* Assign BSEL property to all buses. In the future, this can be changed
* to only assign to buses that support hotplug.
*/
Expand Down

0 comments on commit 59ea3e7

Please sign in to comment.