summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c')
-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);