浏览代码

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

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
714641ae6d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/drivers/net/etherfabric.c

+ 2
- 2
src/drivers/net/etherfabric.c 查看文件

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

正在加载...
取消
保存