فهرست منبع

Merge branch 'master' of git://git.denx.de/u-boot-x86

* 'master' of git://git.denx.de/u-boot-x86:
  sc520: fix build warning about unused temp var
Wolfgang Denk 13 سال پیش
والد
کامیت
12ae615fba
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      arch/x86/cpu/sc520/sc520_timer.c

+ 2 - 3
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);