david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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

This commit is contained in:
Michael Brown 2006-06-14 00:18:13 +00:00
parent 51a36f1cfb
commit 714641ae6d
1 changed files with 2 additions and 2 deletions

View File

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