From b47cb7aa815b1ab4d87e63152a16265b873d16ec Mon Sep 17 00:00:00 2001 From: "(none)!yura" <(none)!yura> Date: Wed, 20 Oct 2004 17:42:20 +0000 Subject: [PATCH] remove unused code from ntfs_resident_attr_value_resize (Logical change 1.620) --- libntfs/attrib.c | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/libntfs/attrib.c b/libntfs/attrib.c index 4290406b..b9a3e767 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -2764,23 +2764,12 @@ int ntfs_resident_attr_value_resize(MFT_RECORD *m, ATTR_RECORD *a, * TODO: Implement the move. For now just abort. (AIA) */ if (a->name_length) { - BOOL move_name = FALSE; - if (a->non_resident) { - if (le16_to_cpu(a->name_offset) >= - le16_to_cpu(a->mapping_pairs_offset)) - move_name = TRUE; - } else { - if (le16_to_cpu(a->name_offset) >= - le16_to_cpu(a->value_offset)) - move_name = TRUE; - - } - if (move_name) { + if (le16_to_cpu(a->name_offset) >= + le16_to_cpu(a->value_offset)) { // FIXME: Eeek! - Dprintf("%s(): Eeek! Name is placed after the %s. " - "Aborting...\n", __FUNCTION__, - a->non_resident ? "mapping pairs array": - "attribute value"); + Dprintf("%s(): Eeek! Name is placed after the " + "attribute value. Aborting...\n", + __FUNCTION__); errno = ENOTSUP; return -1; }