mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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
This commit is contained in:
parent
339722e89e
commit
2d892f1b37
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue