summaryrefslogtreecommitdiff
path: root/src/arch/i386
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-11-12 13:48:39 +0000
committerMyles Watson <mylesgw@gmail.com>2009-11-12 13:48:39 +0000
commit2d892f1b37f1077b8dffbf844203961ab29c6d06 (patch)
tree82a2385b9cfdbec2f7cf063962862decca6e0e98 /src/arch/i386
parent339722e89e7e6462b8fc152c8c49fbdfbcae6606 (diff)
Get rid of the ugly warning the right way.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4937 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386')
-rw-r--r--src/arch/i386/boot/coreboot_table.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c
index 9eb13b73f1..49fef60cdd 100644
--- a/src/arch/i386/boot/coreboot_table.c
+++ b/src/arch/i386/boot/coreboot_table.c
@@ -485,11 +485,9 @@ unsigned long write_coreboot_table(
#if (CONFIG_HAVE_OPTION_TABLE == 1)
{
- struct lb_record *rec_dest, *rec_src;
- /* Write the option config table... */
- rec_dest = lb_new_record(head);
- rec_src = (struct lb_record *)(void *)&option_table;
- memcpy(rec_dest, rec_src, rec_src->size);
+ struct lb_record *rec_dest = lb_new_record(head);
+ /* Copy the option config table, it's already a lb_record... */
+ memcpy(rec_dest, &option_table, option_table.size);
/* Create cmos checksum entry in coreboot table */
lb_cmos_checksum(head);
}