mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 01:21:10 +03:00
Fixed two logic errors that were cancelling each other out.
This commit is contained in:
@@ -2273,7 +2273,7 @@ static int falcon_spi_rw ( struct spi_bus *bus, struct spi_device *device,
|
|||||||
memcpy ( data_in, ®, len );
|
memcpy ( data_in, ®, len );
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -2315,8 +2315,8 @@ static int falcon_read_eeprom ( struct efab_nic *efab ) {
|
|||||||
nvs = ( efab->has_flash ?
|
nvs = ( efab->has_flash ?
|
||||||
&efab->falcon_flash.nvs : &efab->falcon_eeprom.nvs );
|
&efab->falcon_flash.nvs : &efab->falcon_eeprom.nvs );
|
||||||
|
|
||||||
return nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
|
return ( nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
|
||||||
efab->mac_addr, sizeof ( efab->mac_addr ) );
|
efab->mac_addr, sizeof ( efab->mac_addr ) ) == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** RX descriptor */
|
/** RX descriptor */
|
||||||
|
|||||||
Reference in New Issue
Block a user