aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2021-02-23 21:24:12 +0000
committerAllan Jude <allanjude@FreeBSD.org>2021-02-23 21:24:47 +0000
commitd2589dc3d56ce063b28b54df11c950c3758d9578 (patch)
treea96d3a7e7a9615a9b6af1e48275126f0b47a0581
parent0b7472b3d8d2f1e90fade5236b44fd98d8e396c2 (diff)
downloadsrc-d2589dc3d56ce063b28b54df11c950c3758d9578.tar.gz
src-d2589dc3d56ce063b28b54df11c950c3758d9578.zip
ipmi_smbios: remove unused smbios_cksum function
Sponsored By: Ampere Computing LLC Submitted By: Klara Inc. Differential Revision: https://reviews.freebsd.org/D28751
-rw-r--r--sys/dev/ipmi/ipmi_smbios.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/dev/ipmi/ipmi_smbios.c b/sys/dev/ipmi/ipmi_smbios.c
index 735f404eec5f..f7bc50d5173e 100644
--- a/sys/dev/ipmi/ipmi_smbios.c
+++ b/sys/dev/ipmi/ipmi_smbios.c
@@ -87,7 +87,6 @@ static struct mtx ipmi_info_mtx;
MTX_SYSINIT(ipmi_info, &ipmi_info_mtx, "ipmi info", MTX_DEF);
static void ipmi_smbios_probe(struct ipmi_get_info *);
-static int smbios_cksum(struct smbios_eps *);
static void smbios_walk_table(uint8_t *, vm_size_t, smbios_callback_t,
void *);
static void smbios_ipmi_info(struct smbios_structure_header *, void *);
@@ -237,19 +236,3 @@ ipmi_smbios_identify(struct ipmi_get_info *info)
return (info->iface_type != 0);
}
-
-static int
-smbios_cksum(struct smbios_eps *e)
-{
- u_int8_t *ptr;
- u_int8_t cksum;
- int i;
-
- ptr = (u_int8_t *)e;
- cksum = 0;
- for (i = 0; i < e->length; i++) {
- cksum += ptr[i];
- }
-
- return (cksum);
-}