[U-Boot] [PATCH v3 04/28] x86: Remove compiler warning in sc520_timer.c
Simon Glass
sjg at chromium.org
Thu Feb 16 15:48:51 CET 2012
Removes 'set but not used' warning.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/x86/cpu/sc520/sc520_timer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/cpu/sc520/sc520_timer.c b/arch/x86/cpu/sc520/sc520_timer.c
index 495a694..7f812dc 100644
--- a/arch/x86/cpu/sc520/sc520_timer.c
+++ b/arch/x86/cpu/sc520/sc520_timer.c
@@ -81,7 +81,7 @@ void sc520_udelay(unsigned long usec)
long temp;
temp = readw(&sc520_mmcr->swtmrmilli);
- temp = readw(&sc520_mmcr->swtmrmicro);
+ temp += readw(&sc520_mmcr->swtmrmicro);
do {
m += readw(&sc520_mmcr->swtmrmilli);
--
1.7.7.3
More information about the U-Boot
mailing list