From 7d944735bebc9eb7e37e43ed2c6404f435e5d4bf Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 5 Sep 2007 02:10:45 +0000 Subject: [PATCH] minor patch: use run_address() instead duplicating in lib/lar.c Signed-off-by: Alex Beregszaszi Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@493 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- lib/lar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/lar.c b/lib/lar.c index 3d0cb006ad..92a1daa1e8 100644 --- a/lib/lar.c +++ b/lib/lar.c @@ -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 (*v) (void); struct mem_file result; int ret; @@ -261,8 +260,7 @@ int run_file(struct mem_file *archive, const char *filename, void *where) where = result.start; } printk(BIOS_SPEW, "where is %p\n", where); - v = where; - ret = v(); + ret = run_address(where); printk(BIOS_SPEW, "run_file returns with %d\n", ret); return ret; }