diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-03-27 12:15:09 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-04-24 20:18:58 +0000 |
commit | 124ef38f7afc61ad7c713c22aad7c5c7f79bdb9b (patch) | |
tree | 980f498681fcc053ec1e591e22bb16afbef0a191 /udelay.c | |
parent | 3f7e3419887c6d37330387f8e32c86ba47bdf70c (diff) | |
download | flashrom-124ef38f7afc61ad7c713c22aad7c5c7f79bdb9b.tar.gz flashrom-124ef38f7afc61ad7c713c22aad7c5c7f79bdb9b.tar.bz2 flashrom-124ef38f7afc61ad7c713c22aad7c5c7f79bdb9b.zip |
Fix whitespace errors
Change-Id: Ic2d3bb9d8581a0471a8568a130f893b34dddf113
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/25380
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'udelay.c')
-rw-r--r-- | udelay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -170,7 +170,7 @@ recalibrate: /* Avoid division by zero, but in that case the loop is shot anyway. */ if (!timeusec) timeusec = 1; - + /* Compute rounded up number of loops per microsecond. */ micro = (count * micro) / timeusec + 1; msg_pdbg("%luM loops per second, ", micro); @@ -183,7 +183,7 @@ recalibrate: for (i = 0; i < 4; i++) { if (resolution && (resolution < 10)) { timeusec = measure_delay(100); - } else if (resolution && + } else if (resolution && (resolution < ULONG_MAX / 200)) { timeusec = measure_delay(resolution * 10) * 100 / (resolution * 10); |