From: Tom Rini Date: Fri, 9 Jun 2017 02:33:25 +0000 (-0400) Subject: rkcommon.c: Remove unused rkcommon_spi_to_offset X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=beca2901fd09f265b6a9b521d31276f93404cd6a;p=u-boot.git rkcommon.c: Remove unused rkcommon_spi_to_offset This function is unused, remove. Reported by clang-3.8. Fixes: a1c29d4b43dc ("rockchip: mkimage: set init_boot_size to avoid ...") Cc: Philipp Tomsich Signed-off-by: Tom Rini Reviewed-by: Philipp Tomsich Signed-off-by: Philipp Tomsich --- diff --git a/tools/rkcommon.c b/tools/rkcommon.c index a583c0caa0..db2da75a96 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -226,11 +226,6 @@ static inline unsigned rkcommon_offset_to_spi(unsigned offset) return ((offset & ~0x7ff) << 1) + (offset & 0x7ff); } -static inline unsigned rkcommon_spi_to_offset(unsigned offset) -{ - return ((offset & ~0x7ff) >> 1) + (offset & 0x7ff); -} - static int rkcommon_parse_header(const void *buf, struct header0_info *header0, struct spl_info **spl_info) {