[U-Boot] [RFC PATCH 11/19] x86: Remove compiler warning in sc520_timer.c

Simon Glass sjg at chromium.org
Wed Dec 28 07:35:52 CET 2011


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