Sfoglia il codice sorgente

Translate between "0 = success" and "0 = failure" call standards.

tags/v0.9.3
Michael Brown 18 anni fa
parent
commit
714641ae6d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/drivers/net/etherfabric.c

+ 2
- 2
src/drivers/net/etherfabric.c Vedi File

@@ -1150,8 +1150,8 @@ static int ef1002_read_eeprom ( struct efab_nic *efab ) {
1150 1150
 	struct i2c_interface *i2c = &efab->ef1002_i2c.i2c;
1151 1151
 	struct i2c_device *i2cdev = &efab->ef1002_eeprom;
1152 1152
 
1153
-	return i2c->read ( i2c, i2cdev, EF1_EEPROM_HWADDR_OFFSET,
1154
-			   efab->mac_addr, sizeof ( efab->mac_addr ) );
1153
+	return ( i2c->read ( i2c, i2cdev, EF1_EEPROM_HWADDR_OFFSET,
1154
+			     efab->mac_addr, sizeof ( efab->mac_addr ) ) == 0);
1155 1155
 }
1156 1156
 
1157 1157
 /** RX descriptor */

Loading…
Annulla
Salva