aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-04-10 17:30:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-04-10 17:30:54 +0000
commit677e70e0c4726dbcc909934069b851f8eecc7c77 (patch)
treea28ddda33a36910923bf9376fb3a3fef47a383e5
parentde07f7f06e5e98a0035120bcdce63b355d999d25 (diff)
downloadsrc-677e70e0c4726dbcc909934069b851f8eecc7c77.tar.gz
src-677e70e0c4726dbcc909934069b851f8eecc7c77.zip
ipmi: Remove some dead code for unsupported BMCs.
Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39351
-rw-r--r--sys/dev/ipmi/ipmi_acpi.c6
1 files changed, 1 insertions, 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: