summaryrefslogtreecommitdiffstats
path: root/rsnix/src/fat.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rsnix/src/fat.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/rsnix/src/fat.rs b/rsnix/src/fat.rs
index 13d19df..335a160 100644
--- a/rsnix/src/fat.rs
+++ b/rsnix/src/fat.rs
@@ -153,11 +153,7 @@ fn is_eoc(c: u32) -> bool {
153 153
154fn next_cluster(c: u32) -> Result<u32, ()> { 154fn next_cluster(c: u32) -> Result<u32, ()> {
155 let n = read_fat_entry(c); 155 let n = read_fat_entry(c);
156 if is_eoc(n) { 156 if is_eoc(n) { Err(()) } else { Ok(n) }
157 Err(())
158 } else {
159 Ok(n)
160 }
161} 157}
162 158
163/// Allocate a fresh cluster: mark it EOC in the FAT and zero its data. 159/// Allocate a fresh cluster: mark it EOC in the FAT and zero its data.