summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-03-10 03:11:39 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-03-10 03:11:39 +0000
commit6945aa99143d285afa8ae93e7b27c3a97e695f6b (patch)
treec6cf953992d7604cc4c6ed7537d55fa0c1c7b714 /firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
parent0592704ab7ac4965a6532cab9794df1486d232d6 (diff)
downloadrockbox-6945aa99143d285afa8ae93e7b27c3a97e695f6b.tar.gz
rockbox-6945aa99143d285afa8ae93e7b27c3a97e695f6b.zip
Fix bootloader red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c')
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
index b4cdaebf99..ac35259f8f 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
@@ -1230,8 +1230,12 @@ uint32_t ftl_read(uint32_t sector, uint32_t count, void* buffer)
+ (*logentry).pageoffsets[page];
#endif
+#ifndef FTL_READONLY
if (count >= i + ftl_banks && !(page & (ftl_banks - 1))
&& logentry == (struct ftl_log_type*)0)
+#else
+ if (count >= i + ftl_banks && !(page & (ftl_banks - 1)))
+#endif
{
uint32_t ret = ftl_vfl_read_fast(abspage, &((uint8_t*)buffer)[i << 11],
&ftl_sparebuffer[0], 1, 1);