summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/options.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-30 16:46:12 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-30 16:46:12 +0000
commitd233f363c129dae2ba5fd7ac536cf92fb4c2dd6e (patch)
tree60d3123a957d313d583783a42cfda4b0621dce85 /payloads/libpayload/drivers/options.c
parentb5fb0c5c4eda2329d848aedcf4f7e8b6dc8012b2 (diff)
Some driver fixes for libpayload:
- fix minor bug in serial driver. - latest USB stack fixes - fix dead store in options.c Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4239 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/drivers/options.c')
-rw-r--r--payloads/libpayload/drivers/options.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index 8eed78ef17..a13b207a6d 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -55,8 +55,6 @@ static int get_cmos_value(u32 bitnum, u32 len, void *valptr)
u32 addr, bit;
u8 reg8;
- value = valptr;
-
/* Convert to byte borders */
addr=(bitnum / 8);
bit=(bitnum % 8);
@@ -85,7 +83,6 @@ int get_option(void *dest, char *name)
int len = strnlen(name, CMOS_MAX_NAME_LENGTH);
/* cmos entries are located right after the option table */
- cmos_entry=(struct cb_cmos_entries*)((unsigned char *)option_table + option_table->header_length);
for ( cmos_entry = (struct cb_cmos_entries*)((unsigned char *)option_table + option_table->header_length);
cmos_entry->tag == CB_TAG_OPTION;