summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.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/fat_adv.c
parent8453cfff02206ad932e8ddd3c24b34aa7c42af62 (diff)
Code cleanup after using LLVM/Clang Static Analyzer
Diffstat (limited to 'src/fat_adv.c')
-rw-r--r--src/fat_adv.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index f0866ba..68b49b3 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -451,7 +451,7 @@ static unsigned int fat32_find_root_cluster(disk_t *disk_car,const partition_t *
{
if((nb_subdir_ok>nb_subdir*0.90)&&(nb_subdir>=3))
{
- unsigned long int new_root_cluster=root_cluster;
+ unsigned long int new_root_cluster;
unsigned long int tmp=root_cluster;
int back=0; /* To avoid an endless loop... */
/* Il faut ajouter un parcours arriere de la FAT
@@ -1770,7 +1770,6 @@ static upart_type_t fat_find_info(disk_t *disk_car,unsigned int*reserved, unsign
static upart_type_t select_fat_info(const info_offset_t *info_offset, const unsigned int nbr_offset,unsigned int*reserved, unsigned int*fat_length, const unsigned long int max_sector_offset, unsigned int *fats)
{
unsigned int i;
- int reserved_can_be_one=0;
unsigned long int fat2_location=*reserved+*fat_length;
struct MenuItem menuSelectFAT[]=
{
@@ -1786,10 +1785,6 @@ static upart_type_t select_fat_info(const info_offset_t *info_offset, const unsi
{
if(nbr_offset<30 || info_offset[i].nbr>1)
screen_buffer_add(" %02d %8lu %u\n",info_offset[i].fat_type,info_offset[i].offset,info_offset[i].nbr);
- if(info_offset[i].fat_type<32)
- {
- reserved_can_be_one=1;
- }
}
aff_copy(stdscr);
wmove(stdscr,4,0);