summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-01-20 11:41:18 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-01-20 11:41:18 +0000
commit49592128b23e1b630d2d6a91d9539e18330efd79 (patch)
treefaece677dc58f80475b8cf88f7b8ab61d15021e5
parent9631f815ac5076ac37343575538e19cee8465714 (diff)
downloadrockbox-49592128b23e1b630d2d6a91d9539e18330efd79.tar.gz
rockbox-49592128b23e1b630d2d6a91d9539e18330efd79.tar.bz2
rockbox-49592128b23e1b630d2d6a91d9539e18330efd79.zip
Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24296 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
index ad3c85bee5..63285dd0ff 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
@@ -1573,11 +1573,8 @@ struct ftl_log_type* ftl_allocate_log_entry(uint32_t block)
entry = ftl_log;
while ((*entry).scatteredvblock != 0xFFFF) entry = &entry[1];
(*entry).scatteredvblock = ftl_allocate_pool_block();
- if ((*entry).scatteredvblock == 0xFFFFFFFF)
- {
- (*entry).scatteredvblock = 0xFFFF;
+ if ((*entry).scatteredvblock == 0xFFFF)
return (struct ftl_log_type*)0;
- }
}
ftl_init_log_entry(entry);