[LinuxBIOS] r493 - LinuxBIOSv3/lib

svn at openbios.org svn at openbios.org
Wed Sep 5 04:10:46 CEST 2007


Author: stepan
Date: 2007-09-05 04:10:45 +0200 (Wed, 05 Sep 2007)
New Revision: 493

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

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



Modified: LinuxBIOSv3/lib/lar.c
===================================================================
--- LinuxBIOSv3/lib/lar.c	2007-09-05 02:05:55 UTC (rev 492)
+++ LinuxBIOSv3/lib/lar.c	2007-09-05 02:10:45 UTC (rev 493)
@@ -233,7 +233,6 @@
  */
 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 @@
 		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;
 }





More information about the coreboot mailing list