mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
82802ab.c: Remove duplicated check
Change-Id: I5d511d7ec254bdbd9926e6d8efc308fb2339cb81 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/38661 Reviewed-by: Idwer Vollering <vidwer@gmail.com> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b07c53d75c
commit
cc71eb59cc
@ -89,9 +89,9 @@ uint8_t wait_82802ab(struct flashctx *flash)
|
||||
chipaddr bios = flash->virtual_memory;
|
||||
|
||||
chip_writeb(flash, 0x70, bios);
|
||||
if ((chip_readb(flash, bios) & 0x80) == 0) { // it's busy
|
||||
while ((chip_readb(flash, bios) & 0x80) == 0) ;
|
||||
}
|
||||
|
||||
while ((chip_readb(flash, bios) & 0x80) == 0) // it's busy
|
||||
;
|
||||
|
||||
status = chip_readb(flash, bios);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user