Bläddra i källkod

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

tags/v0.9.3
Michael Brown 18 år sedan
förälder
incheckning
714641ae6d
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/drivers/net/etherfabric.c

+ 2
- 2
src/drivers/net/etherfabric.c Visa fil

@@ -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 */

Laddar…
Avbryt
Spara