82802ab.c: Remove duplicated check
Change-Id: I5d511d7ec254bdbd9926e6d8efc308fb2339cb81
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/38661
Original-Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Original-Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71310
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/82802ab.c b/82802ab.c
index 281b66e..b485c11 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -89,9 +89,9 @@
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);