From 677e70e0c4726dbcc909934069b851f8eecc7c77 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 10 Apr 2023 10:30:54 -0700 Subject: ipmi: Remove some dead code for unsupported BMCs. Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39351 --- sys/dev/ipmi/ipmi_acpi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/ipmi/ipmi_acpi.c b/sys/dev/ipmi/ipmi_acpi.c index f3745375c15c..6e70d5ad0fc0 100644 --- a/sys/dev/ipmi/ipmi_acpi.c +++ b/sys/dev/ipmi/ipmi_acpi.c @@ -80,9 +80,8 @@ ipmi_acpi_attach(device_t dev) { ACPI_HANDLE devh; const char *mode; - struct ipmi_get_info info; struct ipmi_softc *sc = device_get_softc(dev); - int count, error, flags, i, type; + int count, error, i, type; int interface_type = 0, interface_version = 0; error = 0; @@ -106,9 +105,6 @@ ipmi_acpi_attach(device_t dev) device_printf(dev, "BT interface not supported\n"); return (ENXIO); case SSIF_MODE: - if (ACPI_FAILURE(acpi_GetInteger(devh, "_ADR", &flags))) - return (ENXIO); - info.address = flags; device_printf(dev, "SSIF interface not supported on ACPI\n"); return (0); default: -- cgit v1.2.3