Skip to contentSkip to conversation

rkcommon.c: Remove unused rkcommon_spi_to_offset

PATCH In review Tom Rini 2 participants 3 messages Jun 9, 2017 – Jun 21, 2017

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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 <[email protected]>
---
 tools/rkcommon.c | 5 -----
 1 file changed, 5 deletions(-)
tools/rkcommon.c +0 -5
index fd95abc79aed..a29dc6a5453a 100644
@@ -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)
 {
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Tom Rini

This function is unused, remove. Reported by clang-3.8.

Fixes a1c29d4b43dc ("rockchip: mkimage: set init_boot_size to avoid ...")
Cc Philipp Tomsich <[email protected]>

---
tools/rkcommon.c | 5 -----

1 file changed, 5 deletions(-)
tools/rkcommon.c +0 -0
index fd95abc79aed..a29dc6a5453a 100644
@@ -226,11 +226,6 @@ static inline unsigned rkcommon_offset_to_spi(unsigned offset)
 	return ((offset & ~0x7ff) << 1) + (offset & 0x7ff);

tools/rkcommon.c static inline unsigned rkcommon_offset_to_spi(unsigned offset) · line 231

Quoted 10 lines
tools/rkcommon.c +0 -5
 }
 
-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)
 {