diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-21 20:14:31 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-21 20:14:31 +0000 |
commit | 16cdbb244cded6f3d8df719b7a0217fdf6bf327d (patch) | |
tree | 7bfdc4f7a31c5500d34d57a267249fe994eb9362 /src/arch/i386/boot | |
parent | 5cda45d5ec2dc2b112cb7ec1a95b861f1fa9fd2b (diff) | |
download | coreboot-16cdbb244cded6f3d8df719b7a0217fdf6bf327d.tar.xz |
Eliminate various issues brought up by scan-build.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4152 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/boot')
-rw-r--r-- | src/arch/i386/boot/coreboot_table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index aa665c2520..88605cd0d1 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -93,9 +93,8 @@ struct lb_serial *lb_serial(struct lb_header *header) void add_console(struct lb_header *header, u16 consoletype) { - struct lb_record *rec; struct lb_console *console; - rec = lb_new_record(header); + console = (struct lb_console *)lb_new_record(header); console->tag = LB_TAG_CONSOLE; console->size = sizeof(*console); |