summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2009-10-10 16:18:14 +0000
committerDave Chapman <dave@dchapman.com>2009-10-10 16:18:14 +0000
commit72271af7df5158d516305ea647789b543b805078 (patch)
tree4565e756addf8607df7eff811fb47710c5414a83 /firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
parent3c362fa8c6b9cd55f2c1e514c426b990be779563 (diff)
downloadrockbox-72271af7df5158d516305ea647789b543b805078.tar.gz
rockbox-72271af7df5158d516305ea647789b543b805078.zip
Squash a warning when FTL_READONLY is defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23073 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, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
index 15c97ccb0d..130605f602 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
@@ -820,7 +820,9 @@ uint32_t ftl_vfl_read(uint32_t vpage, void* buffer, void* sparebuffer,
nand_reset(bank);
ret = nand_read_page(bank, physpage, buffer,
sparebuffer, 1, checkempty);
-#ifndef FTL_READONLY
+#ifdef FTL_READONLY
+ (void)remaponfail;
+#else
if (remaponfail == 1 &&(ret & 0x11D) != 0 && (ret & 2) == 0)
ftl_vfl_schedule_block_for_remap(bank, block);
#endif