summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/rtw_eeprom.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-07-09 19:09:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-11 10:06:44 +0200
commitaf4e6efda54da8520e6c7b73f34798fa3e5c088d (patch)
tree4a80f76a5823813bc33e25d9956b50697a44e64b /drivers/staging/r8188eu/include/rtw_eeprom.h
parentba68103d0f7af3e80286c74f7406b7b9a5334d3b (diff)
downloadlinux-af4e6efda54da8520e6c7b73f34798fa3e5c088d.tar.bz2
staging: r8188eu: remove EepromOrEfuse from struct eeprom_priv
The EepromOrEfuse flag in struct eeprom_priv is used only in the ReadAdapterInfo8188EU function. We can remove EepromOrEfuse from struct eeprom_priv. As the meaning of EepromOrEfuse isn't obvious, there is a macro is_boot_from_eeprom that's used for checking the value. We don't need the macro, writing the check as !(eeValue & BOOT_FROM_EEPROM) makes it clear what is checked. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220709171000.180481-3-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/rtw_eeprom.h')
-rw-r--r--drivers/staging/r8188eu/include/rtw_eeprom.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_eeprom.h b/drivers/staging/r8188eu/include/rtw_eeprom.h
index d8d48ace356c..40c61f7a03be 100644
--- a/drivers/staging/r8188eu/include/rtw_eeprom.h
+++ b/drivers/staging/r8188eu/include/rtw_eeprom.h
@@ -12,7 +12,6 @@
struct eeprom_priv {
u8 bautoload_fail_flag;
u8 mac_addr[ETH_ALEN] __aligned(2); /* PermanentAddress */
- u8 EepromOrEfuse;
u8 efuse_eeprom_data[HWSET_MAX_SIZE_512] __aligned(4);
};