summaryrefslogtreecommitdiffstats
path: root/src/fat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fat.c')
-rw-r--r--src/fat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fat.c b/src/fat.c
index ca9766c..477e094 100644
--- a/src/fat.c
+++ b/src/fat.c
@@ -392,8 +392,7 @@ unsigned int fat32_get_prev_cluster(disk_t *disk_car,const partition_t *partitio
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
- unsigned int offset_o;
- offset_o=prev_cluster%(disk_car->sector_size/4);
+ const unsigned int offset_o=prev_cluster%(disk_car->sector_size/4);
if((offset_o==0)||(prev_cluster==2))
{
if((unsigned)disk_car->pread(disk_car, buffer, disk_car->sector_size, hd_offset) != disk_car->sector_size)