mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
staging: r8188eu: simplify two boolean assignments
There's no need to use the ? operator and to set true and false explicitly. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211111212644.9011-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
80d21b0a5d
commit
74b1dc3630
1 changed files with 2 additions and 2 deletions
|
@ -1028,8 +1028,8 @@ void ReadAdapterInfo8188EU(struct adapter *Adapter)
|
|||
|
||||
/* check system boot selection */
|
||||
eeValue = rtw_read8(Adapter, REG_9346CR);
|
||||
eeprom->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM) ? true : false;
|
||||
eeprom->bautoload_fail_flag = (eeValue & EEPROM_EN) ? false : true;
|
||||
eeprom->EepromOrEfuse = (eeValue & BOOT_FROM_EEPROM);
|
||||
eeprom->bautoload_fail_flag = !(eeValue & EEPROM_EN);
|
||||
|
||||
DBG_88E("Boot from %s, Autoload %s !\n", (eeprom->EepromOrEfuse ? "EEPROM" : "EFUSE"),
|
||||
(eeprom->bautoload_fail_flag ? "Fail" : "OK"));
|
||||
|
|
Loading…
Reference in a new issue