From cc71eb59ccc23799ee009246ab2191121c8b0050 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 31 Jan 2020 11:16:42 +0100 Subject: 82802ab.c: Remove duplicated check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d511d7ec254bdbd9926e6d8efc308fb2339cb81 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/flashrom/+/38661 Reviewed-by: Idwer Vollering Reviewed-by: Edward O'Callaghan Reviewed-by: Philippe Mathieu-Daudé Tested-by: build bot (Jenkins) --- 82802ab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/82802ab.c b/82802ab.c index 281b66e25..b485c114c 100644 --- a/82802ab.c +++ b/82802ab.c @@ -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); -- cgit v1.2.3