summaryrefslogtreecommitdiffstats
path: root/nic3com.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-05-19 14:14:21 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-05-19 14:14:21 +0000
commitf14f01a0591ab5758bed23c284b91e8a80b6e22b (patch)
treeae611f8bc7ebf9a0d135053690fba41ff509087a /nic3com.c
parentd62988254bee2eb40585502d512cc5a25f2ae10c (diff)
downloadflashrom-f14f01a0591ab5758bed23c284b91e8a80b6e22b.zip
flashrom-f14f01a0591ab5758bed23c284b91e8a80b6e22b.tar.gz
Documentation improvements and small code/whitespace fixes
Corresponding to flashrom svn r535. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'nic3com.c')
-rw-r--r--nic3com.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/nic3com.c b/nic3com.c
index 023ec35..c6341ed 100644
--- a/nic3com.c
+++ b/nic3com.c
@@ -110,10 +110,6 @@ void nic3com_chip_writeb(uint8_t val, chipaddr addr)
uint8_t nic3com_chip_readb(const chipaddr addr)
{
- uint8_t val;
-
OUTL((uint32_t)addr, io_base_addr + BIOS_ROM_ADDR);
- val = INB(io_base_addr + BIOS_ROM_DATA);
-
- return val;
+ return INB(io_base_addr + BIOS_ROM_DATA);
}
OpenPOWER on IntegriCloud