fs/fat32: Remove unused size_clusters field
diff --git a/common/fs/fat32.s2.c b/common/fs/fat32.s2.c
index d9db188e..4d7b906a 100644
--- a/common/fs/fat32.s2.c
+++ b/common/fs/fat32.s2.c
@@ -36,7 +36,7 @@ struct fat32_file_handle {
struct fat32_context context;
uint32_t first_cluster;
uint32_t size_bytes;
- uint32_t size_clusters;
+
uint32_t *cluster_chain;
size_t chain_len;
};
@@ -682,7 +682,7 @@ struct file_handle *fat32_open(struct volume *part, const char *path) {
ret->first_cluster = current_file.cluster_num_low;
if (context.type == 32)
ret->first_cluster |= (uint64_t)current_file.cluster_num_high << 16;
- ret->size_clusters = DIV_ROUNDUP((uint64_t)current_file.file_size_bytes, context.bytes_per_sector);
+
ret->size_bytes = current_file.file_size_bytes;
// Initialize chain_len before calling cache_cluster_chain
// (cache_cluster_chain may return NULL without setting it for empty files)
