diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2008-11-16 12:53:21 +0100 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2008-11-16 12:53:21 +0100 |
commit | 07b1742903d2b483ca4afc1d39d1b644eb755e5a (patch) | |
tree | a72a91c3d25247474c5c91e5ce30a85c3e23d64d /src/fatp.c | |
parent | 8453cfff02206ad932e8ddd3c24b34aa7c42af62 (diff) |
Code cleanup after using LLVM/Clang Static Analyzer
Diffstat (limited to 'src/fatp.c')
-rw-r--r-- | src/fatp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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)) { |