Skip to content

Commit

Permalink
remove redundant ntfs_mft_record_read error loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
szaka committed Feb 11, 2009
1 parent 901c3a7 commit 29381f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libntfs-3g/mft.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,9 @@ int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref,
if (!m)
return -1;
}
if (ntfs_mft_record_read(vol, mref, m)) {
ntfs_log_perror("ntfs_mft_record_read failed");
if (ntfs_mft_record_read(vol, mref, m))
goto err_out;
}

if (ntfs_mft_record_check(vol, mref, m))
goto err_out;

Expand Down Expand Up @@ -1402,7 +1401,6 @@ static ntfs_inode *ntfs_mft_rec_alloc(ntfs_volume *vol)
goto undo_mftbmp_alloc;

if (ntfs_mft_record_read(vol, bit, m)) {
ntfs_log_perror("Error reading mft %lld #2", (long long)bit);
free(m);
goto undo_mftbmp_alloc;
}
Expand Down Expand Up @@ -1705,7 +1703,6 @@ ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, ntfs_inode *base_ni)
goto undo_mftbmp_alloc;

if (ntfs_mft_record_read(vol, bit, m)) {
ntfs_log_perror("Error reading mft %lld", (long long)bit);
free(m);
goto undo_mftbmp_alloc;
}
Expand Down

0 comments on commit 29381f0

Please sign in to comment.