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