[coreboot-gerrit] Patch set updated for coreboot: 03721cb drivers/spi/sst.c: Remove unused func to_sst_spi_flash()

Edward O'Callaghan (eocallaghan@alterapraxis.com) gerrit at coreboot.org
Sun May 18 08:12:39 CEST 2014


Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5779

-gerrit

commit 03721cb83ef579f521082a54b95d44fcd78f8166
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sun May 18 10:40:26 2014 +1000

    drivers/spi/sst.c: Remove unused func to_sst_spi_flash()
    
    Trips up clang builds with a warn treated as error.
    
    Change-Id: I9c0e2930ba8a60c7ad6063e9826b1b8638185505
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
 src/drivers/spi/sst.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c
index 8cf3f96..3cf6c50 100644
--- a/src/drivers/spi/sst.c
+++ b/src/drivers/spi/sst.c
@@ -46,11 +46,6 @@ struct sst_spi_flash {
 	const struct sst_spi_flash_params *params;
 };
 
-static inline struct sst_spi_flash *to_sst_spi_flash(struct spi_flash *flash)
-{
-	return container_of(flash, struct sst_spi_flash, flash);
-}
-
 #define SST_SECTOR_SIZE (4 * 1024)
 static const struct sst_spi_flash_params sst_spi_flash_table[] = {
 	{



More information about the coreboot-gerrit mailing list