Bläddra i källkod

Remove unnecessary variable.

tags/v0.9.3
Marty Connor 16 år sedan
förälder
incheckning
9a4ed0f2d5
2 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1
    2
      src/drivers/net/natsemi.c
  2. 0
    2
      src/drivers/net/natsemi.h

+ 1
- 2
src/drivers/net/natsemi.c Visa fil

332
          * With PME set the chip will scan incoming packets but
332
          * With PME set the chip will scan incoming packets but
333
          * nothing will be written to memory. 
333
          * nothing will be written to memory. 
334
          */
334
          */
335
-        SavedClkRun = inl (np->ioaddr + ClkRun);
336
-        outl (SavedClkRun & ~0x100, np->ioaddr + ClkRun);
335
+        outl (inl (np->ioaddr + ClkRun) & ~0x100, np->ioaddr + ClkRun);
337
 
336
 
338
 	/* Set MAC address in NIC
337
 	/* Set MAC address in NIC
339
 	 */
338
 	 */

+ 0
- 2
src/drivers/net/natsemi.h Visa fil

182
   MICRIntEn               = 0x2,
182
   MICRIntEn               = 0x2,
183
 };
183
 };
184
 
184
 
185
-static uint32_t SavedClkRun;	
186
-
187
 /* CFG bits [13:16] [18:23] */
185
 /* CFG bits [13:16] [18:23] */
188
 #define CFG_RESET_SAVE 0xfde000
186
 #define CFG_RESET_SAVE 0xfde000
189
 /* WCSR bits [0:4] [9:10] */
187
 /* WCSR bits [0:4] [9:10] */

Laddar…
Avbryt
Spara