]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix e1000 bug introduced in 123cf7
authorErik van der Kouwe <erik@minix3.org>
Wed, 13 Jul 2011 09:36:10 +0000 (11:36 +0200)
committerErik van der Kouwe <erik@minix3.org>
Wed, 13 Jul 2011 09:36:10 +0000 (11:36 +0200)
drivers/e1000/e1000.c

index b712f679fb130e653046f1fccb3532439691bdc9..c9980b1a6fa5fffb0a0230ebfd0f2eb4fb56804b 100644 (file)
@@ -952,7 +952,7 @@ int reg;
                   (reg << e->eeprom_addr_off) | (E1000_REG_EERD_START));
 
     /* Wait until ready. */
-    while (!(data = (e1000_reg_read(e, E1000_REG_EERD)) & e->eeprom_done_bit));
+    while (!((data = (e1000_reg_read(e, E1000_REG_EERD))) & e->eeprom_done_bit));
 
     return data >> 16;
 }