git: 677e70e0c472 - main - ipmi: Remove some dead code for unsupported BMCs.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Apr 2023 17:43:55 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=677e70e0c4726dbcc909934069b851f8eecc7c77
commit 677e70e0c4726dbcc909934069b851f8eecc7c77
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-10 17:30:54 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-10 17:30:54 +0000
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: