From b554b7c51ff4644d49c95c6a87f41e61e092f54d Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 28 Jun 2021 17:42:40 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55910 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/drivers/wifi/generic/smbios.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/drivers') 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; -- cgit v1.2.3