diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-05 11:55:32 +0000 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2012-03-06 21:05:18 +1100 |
commit | ae806cc6ab86c911180e7da253d847843c079608 (patch) | |
tree | 25f275bec15bad79c9289773c79fe9a92b71bc2d /arch | |
parent | fca94c3fd5deef33442813475a5af1650f2d2830 (diff) | |
download | u-boot-ae806cc6ab86c911180e7da253d847843c079608.zip u-boot-ae806cc6ab86c911180e7da253d847843c079608.tar.gz u-boot-ae806cc6ab86c911180e7da253d847843c079608.tar.bz2 |
sc520: fix build warning about unused temp var
Building the eNET_SRAM board fails for me:
sc520_timer.c: In function 'sc520_udelay':
sc520_timer.c:81:7: error: variable 'temp' set but not used
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [sc520_timer.o] Error 1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/cpu/sc520/sc520_timer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/cpu/sc520/sc520_timer.c b/arch/x86/cpu/sc520/sc520_timer.c index 495a694..41f121f 100644 --- a/arch/x86/cpu/sc520/sc520_timer.c +++ b/arch/x86/cpu/sc520/sc520_timer.c @@ -78,10 +78,9 @@ void sc520_udelay(unsigned long usec) { int m = 0; long u; - long temp; - temp = readw(&sc520_mmcr->swtmrmilli); - temp = readw(&sc520_mmcr->swtmrmicro); + readw(&sc520_mmcr->swtmrmilli); + readw(&sc520_mmcr->swtmrmicro); do { m += readw(&sc520_mmcr->swtmrmilli); |