From 9c8532b350d00dbd1aa184f162ef0448c941c822 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 18 May 2014 10:40:26 +1000 Subject: 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 Reviewed-on: http://review.coreboot.org/5779 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- src/drivers/spi/sst.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c index 8cf3f964fd..3cf6c509bf 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[] = { { -- cgit v1.2.3