diff options
Diffstat (limited to 'src/drivers/wifi/generic/smbios.c')
-rw-r--r-- | src/drivers/wifi/generic/smbios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/wifi/generic/smbios.c b/src/drivers/wifi/generic/smbios.c index a1a8e4f204..b8191161bb 100644 --- a/src/drivers/wifi/generic/smbios.c +++ b/src/drivers/wifi/generic/smbios.c @@ -18,9 +18,9 @@ static int smbios_write_intel_wifi(struct device *dev, int *handle, unsigned lon } __packed; struct smbios_type_intel_wifi *t = (struct smbios_type_intel_wifi *)*current; - int len = sizeof(struct smbios_type_intel_wifi); + int len = sizeof(*t); - memset(t, 0, sizeof(struct smbios_type_intel_wifi)); + memset(t, 0, sizeof(*t)); t->type = 0x85; t->length = len - 2; t->handle = *handle; |