aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-06-28 17:42:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-01 07:38:32 +0000
commitb554b7c51ff4644d49c95c6a87f41e61e092f54d (patch)
tree40d14227c84fc5b07ea7eaf7d7d1237a109b171e /src/drivers
parentfff1b2f547357e621258017dbb120c594be87ee0 (diff)
SMBIOS: Drop now-unnecessary unions
Now that the refactoring is complete, the unions for the table header are no longer needed. Therefore, drop them. Change-Id: I4e170e84a12646386d3fd84ae973dd6c18f25809 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55910 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/wifi/generic/smbios.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/drivers/wifi/generic/smbios.c b/src/drivers/wifi/generic/smbios.c
index 7c697ad68f..793349dad0 100644
--- a/src/drivers/wifi/generic/smbios.c
+++ b/src/drivers/wifi/generic/smbios.c
@@ -10,14 +10,7 @@
static int smbios_write_intel_wifi(struct device *dev, int *handle, unsigned long *current)
{
struct smbios_type_intel_wifi {
- union {
- struct {
- u8 type;
- u8 length;
- u16 handle;
- };
- struct smbios_header header;
- };
+ struct smbios_header header;
u8 str;
u8 eos[2];
} __packed;