[coreboot-gerrit] Patch set updated for coreboot: 61cc5fd cbfs: remove run_address()

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Tue Mar 31 00:09:54 CEST 2015


Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9124

-gerrit

commit 61cc5fd3f62cdf7a514a4131f9f67ecdf89c2983
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Thu Mar 26 11:09:03 2015 -0500

    cbfs: remove run_address()
    
    The run_address() function is not used. Remove it.
    
    Change-Id: I96de4cf0a529b08943ff8281cedead642eb415de
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/include/cbfs.h |  3 ---
 src/lib/cbfs.c     | 14 --------------
 2 files changed, 17 deletions(-)

diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index 2478c4c..84fe251 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -76,9 +76,6 @@ void *cbfs_simple_buffer_map(struct cbfs_simple_buffer *buffer,
 void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer,
 			       const void *address);
 
-// Utility functions
-int run_address(void *f);
-
 /* Defined in individual arch / board implementation. */
 int init_default_cbfs_media(struct cbfs_media *media);
 
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 54ec8d0..0fddb53 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -203,18 +203,4 @@ void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer,
 	return NULL;
 }
 
-/**
- * run_address is passed the address of a function taking no parameters and
- * jumps to it, returning the result.
- * @param f the address to call as a function.
- * @return value returned by the function.
- */
-
-int run_address(void *f)
-{
-	int (*v) (void);
-	v = f;
-	return v();
-}
-
 #endif



More information about the coreboot-gerrit mailing list