From: Tom Rini Date: Thu, 8 Jun 2017 22:33:25 -0400 Subject: [U-Boot] [PATCH] rkcommon.c: Remove unused rkcommon_spi_to_offset Message-ID: <1496975605-5747-1-git-send-email-trini@konsulko.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- tools/rkcommon.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index fd95abc79aed..a29dc6a5453a 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) { -- 1.9.1