summaryrefslogtreecommitdiffstats
path: root/src/fatp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:53:21 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-11-16 12:53:21 +0100
commit07b1742903d2b483ca4afc1d39d1b644eb755e5a (patch)
treea72a91c3d25247474c5c91e5ce30a85c3e23d64d /src/fatp.c
parent8453cfff02206ad932e8ddd3c24b34aa7c42af62 (diff)
Code cleanup after using LLVM/Clang Static Analyzer
Diffstat (limited to 'src/fatp.c')
-rw-r--r--src/fatp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fatp.c b/src/fatp.c
index 0294b8a..5f90309 100644
--- a/src/fatp.c
+++ b/src/fatp.c
@@ -53,8 +53,7 @@ static void fat16_remove_used_space(disk_t *disk_car,const partition_t *partitio
partition->part_offset+(uint64_t)(start_data*sector_size));
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
- unsigned int offset_s,offset_o;
- offset_s=prev_cluster/(sector_size/2);
+ unsigned int offset_o;
offset_o=prev_cluster%(sector_size/2);
if((offset_o==0)||(prev_cluster==2))
{
@@ -97,8 +96,7 @@ static void fat32_remove_used_space(disk_t *disk_car,const partition_t *partitio
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
unsigned long int cluster;
- unsigned int offset_s,offset_o;
- offset_s=prev_cluster/(sector_size/4);
+ unsigned int offset_o;
offset_o=prev_cluster%(sector_size/4);
if((offset_o==0)||(prev_cluster==2))
{