[U-Boot] [RFC PATCH v2 04/28] x86: Remove compiler warning in sc520_timer.c
Simon Glass
sjg at chromium.org
Sat Jan 7 01:24:39 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.3.1
More information about the U-Boot
mailing list