summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-01-31 11:16:42 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-05-13 16:11:45 +0000
commitcc71eb59ccc23799ee009246ab2191121c8b0050 (patch)
tree9d6b8c88b634c8011e55304cb8d1bbb8698688e0
parentb07c53d75c7fe5940c175ebd93cd675ea5d13c20 (diff)
downloadflashrom-cc71eb59ccc23799ee009246ab2191121c8b0050.tar.gz
flashrom-cc71eb59ccc23799ee009246ab2191121c8b0050.tar.bz2
flashrom-cc71eb59ccc23799ee009246ab2191121c8b0050.zip
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>
-rw-r--r--82802ab.c6
1 files 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);