minor patch: use run_address() instead duplicating in lib/lar.c

Signed-off-by: Alex Beregszaszi <alex@rtfs.hu>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@493 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-09-05 02:10:45 +00:00
parent 0416d548c5
commit 7d944735be

View file

@ -233,7 +233,6 @@ int copy_file(struct mem_file *archive, const char *filename, void *where)
*/ */
int run_file(struct mem_file *archive, const char *filename, void *where) int run_file(struct mem_file *archive, const char *filename, void *where)
{ {
int (*v) (void);
struct mem_file result; struct mem_file result;
int ret; int ret;
@ -261,8 +260,7 @@ int run_file(struct mem_file *archive, const char *filename, void *where)
where = result.start; where = result.start;
} }
printk(BIOS_SPEW, "where is %p\n", where); printk(BIOS_SPEW, "where is %p\n", where);
v = where; ret = run_address(where);
ret = v();
printk(BIOS_SPEW, "run_file returns with %d\n", ret); printk(BIOS_SPEW, "run_file returns with %d\n", ret);
return ret; return ret;
} }