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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user