Browse Source

Kernel: Remove dubious use of "volatile" in E1000 adapter driver

Andreas Kling 5 years ago
parent
commit
16c858d9f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/Net/E1000NetworkAdapter.cpp

+ 1 - 1
Kernel/Net/E1000NetworkAdapter.cpp

@@ -223,7 +223,7 @@ void E1000NetworkAdapter::handle_irq(const RegisterState&)
 void E1000NetworkAdapter::detect_eeprom()
 void E1000NetworkAdapter::detect_eeprom()
 {
 {
     out32(REG_EEPROM, 0x1);
     out32(REG_EEPROM, 0x1);
-    for (volatile int i = 0; i < 999; ++i) {
+    for (int i = 0; i < 999; ++i) {
         u32 data = in32(REG_EEPROM);
         u32 data = in32(REG_EEPROM);
         if (data & 0x10) {
         if (data & 0x10) {
             m_has_eeprom = true;
             m_has_eeprom = true;