PhotoRec: remove some useless call to header_ignored() when there is actually no file checking
This commit is contained in:
parent
4dab23d105
commit
05f8db7638
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ static int header_check_dvr(const unsigned char *buffer, const unsigned int buff
|
||||||
return 0;
|
return 0;
|
||||||
if(file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_dvr)
|
if(file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_dvr)
|
||||||
{
|
{
|
||||||
header_ignored(file_recovery_new);
|
/* header_ignored(file_recovery_new); is useless as there is no file check */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
reset_file_recovery(file_recovery_new);
|
reset_file_recovery(file_recovery_new);
|
||||||
|
|
|
@ -50,7 +50,7 @@ static int header_check_edb(const unsigned char *buffer, const unsigned int buff
|
||||||
file_recovery->file_stat->file_hint==&file_hint_edb &&
|
file_recovery->file_stat->file_hint==&file_hint_edb &&
|
||||||
file_recovery->file_size==4096)
|
file_recovery->file_size==4096)
|
||||||
{
|
{
|
||||||
header_ignored(file_recovery_new);
|
/* header_ignored(file_recovery_new); is useless as there is no file check */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
reset_file_recovery(file_recovery_new);
|
reset_file_recovery(file_recovery_new);
|
||||||
|
|
|
@ -71,7 +71,7 @@ int header_check_tar(const unsigned char *buffer, const unsigned int buffer_size
|
||||||
return 0;
|
return 0;
|
||||||
if(file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_tar)
|
if(file_recovery->file_stat!=NULL && file_recovery->file_stat->file_hint==&file_hint_tar)
|
||||||
{
|
{
|
||||||
header_ignored(file_recovery_new);
|
/* header_ignored(file_recovery_new); is useless as there is no file check */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
reset_file_recovery(file_recovery_new);
|
reset_file_recovery(file_recovery_new);
|
||||||
|
|
Loading…
Reference in a new issue