http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d62c83a
)
Fixed two logic errors that were cancelling each other out.
author
Michael Brown
<mcb30@etherboot.org>
Mon, 4 Dec 2006 21:12:52 +0000
(21:12 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Mon, 4 Dec 2006 21:12:52 +0000
(21:12 +0000)
src/drivers/net/etherfabric.c
patch
|
blob
|
history
diff --git
a/src/drivers/net/etherfabric.c
b/src/drivers/net/etherfabric.c
index
2afd852
..
1789766
100644
(file)
--- a/
src/drivers/net/etherfabric.c
+++ b/
src/drivers/net/etherfabric.c
@@
-2273,7
+2273,7
@@
static int falcon_spi_rw ( struct spi_bus *bus, struct spi_device *device,
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 ?
&efab->falcon_flash.nvs : &efab->falcon_eeprom.nvs );
- return nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
-
efab->mac_addr, sizeof ( efab->mac_addr )
);
+ return
(
nvs_read ( nvs, FALCON_MAC_ADDRESS_OFFSET ( efab->port ),
+
efab->mac_addr, sizeof ( efab->mac_addr ) ) == 0
);
}
/** RX descriptor */