Browse Source

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

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
714641ae6d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/net/etherfabric.c

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

1150
 	struct i2c_interface *i2c = &efab->ef1002_i2c.i2c;
1150
 	struct i2c_interface *i2c = &efab->ef1002_i2c.i2c;
1151
 	struct i2c_device *i2cdev = &efab->ef1002_eeprom;
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
 /** RX descriptor */
1157
 /** RX descriptor */

Loading…
Cancel
Save