mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 20:52:22 -04:00
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>
This commit is contained in:
parent
fca94c3fd5
commit
ae806cc6ab
@ -78,10 +78,9 @@ void sc520_udelay(unsigned long usec)
|
|||||||
{
|
{
|
||||||
int m = 0;
|
int m = 0;
|
||||||
long u;
|
long u;
|
||||||
long temp;
|
|
||||||
|
|
||||||
temp = readw(&sc520_mmcr->swtmrmilli);
|
readw(&sc520_mmcr->swtmrmilli);
|
||||||
temp = readw(&sc520_mmcr->swtmrmicro);
|
readw(&sc520_mmcr->swtmrmicro);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
m += readw(&sc520_mmcr->swtmrmilli);
|
m += readw(&sc520_mmcr->swtmrmilli);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user