summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-06-09 02:33:25 (GMT)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-06-23 14:40:23 (GMT)
commitbeca2901fd09f265b6a9b521d31276f93404cd6a (patch)
tree50d7a14e943ffafc5c18acbcfc65017bd6327aa3 /tools
parent235c5b8315c6a9eb566fd3d99a098cc6db869fc5 (diff)
downloadu-boot-fsl-qoriq-beca2901fd09f265b6a9b521d31276f93404cd6a.tar.xz
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 <philipp.tomsich@theobroma-systems.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/rkcommon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/rkcommon.c b/tools/rkcommon.c
index a583c0c..db2da75 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)
{