mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Remove dubious use of "volatile" in E1000 adapter driver
This commit is contained in:
parent
03eb0e5638
commit
16c858d9f0
Notes:
sideshowbarker
2024-07-19 06:37:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/16c858d9f03
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ void E1000NetworkAdapter::handle_irq(const RegisterState&)
|
|||
void E1000NetworkAdapter::detect_eeprom()
|
||||
{
|
||||
out32(REG_EEPROM, 0x1);
|
||||
for (volatile int i = 0; i < 999; ++i) {
|
||||
for (int i = 0; i < 999; ++i) {
|
||||
u32 data = in32(REG_EEPROM);
|
||||
if (data & 0x10) {
|
||||
m_has_eeprom = true;
|
||||
|
|
Loading…
Reference in a new issue