Changeset 471feaf in rtems


Ignore:
Timestamp:
Oct 22, 2003, 7:16:44 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4be8e00
Parents:
d61e9c0f
Message:

2003-10-22 Thomas Doerfler <Thomas.Doerfler@…>

PR 515/filesystem

  • src/dosfs/fat_fat_operations.c: Remove commented out code.
Location:
cpukit/libfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/ChangeLog

    rd61e9c0f r471feaf  
     12003-10-22      Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
     2
     3        PR 515/filesystem
     4        * src/dosfs/fat_fat_operations.c: Remove commented out code.
     5
    162003-10-22      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • cpukit/libfs/src/dosfs/fat_fat_operations.c

    rd61e9c0f r471feaf  
    6464        return rc;
    6565       
    66     if ((fs_info->vol.type & FAT_FAT32) &&
    67         (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)) 
     66    if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
    6867        cl4find = fs_info->vol.next_cl; 
    6968
     
    8382        }   
    8483
    85         /*if ((next_cln & fs_info->vol.mask) == FAT_GENFAT_FREE)*/
    8684        if (next_cln == FAT_GENFAT_FREE)
    8785        {
     
    133131            if (*cls_added == count)
    134132            {
    135                 if (fs_info->vol.type & FAT_FAT32)
    136                 {
    137133                    fs_info->vol.next_cl = save_cln;
    138134                    if (fs_info->vol.free_cls != 0xFFFFFFFF)
    139135                        fs_info->vol.free_cls -= (*cls_added);
    140                 }       
    141136                *last_cl = save_cln;   
    142137                fat_buf_release(fs_info);
     
    150145    }
    151146
    152     if (fs_info->vol.type & FAT_FAT32)
    153     {
    154147        fs_info->vol.next_cl = save_cln;
    155148        if (fs_info->vol.free_cls != 0xFFFFFFFF)
    156149            fs_info->vol.free_cls -= (*cls_added);   
    157     }       
     150
    158151    *last_cl = save_cln;
    159152    fat_buf_release(fs_info);
     
    188181        if ( rc != RC_OK )
    189182        {
    190             if ((fs_info->vol.type & FAT_FAT32) &&
    191                 (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))
     183              if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    192184                fs_info->vol.free_cls += freed_cls_cnt;
     185
    193186            fat_buf_release(fs_info);   
    194187            return rc;
     
    203196    }
    204197
    205     if (fs_info->vol.type & FAT_FAT32)
    206     {
    207198        fs_info->vol.next_cl = chain;
    208199        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    209200            fs_info->vol.free_cls += freed_cls_cnt;
    210     }   
    211201
    212202    fat_buf_release(fs_info);
     
    347337            if ( FAT_CLUSTER_IS_ODD(cln) )
    348338            {
    349 #if 0
    350               /*
    351                * do not perform endian conversion explicitely,
    352                * because following code will enforce little
    353                * endian format implicitly!
    354                */               
    355                 fat16_clv = CT_LE_W((((unsigned16)in_val) << FAT_FAT12_SHIFT));
    356 #else
    357339                fat16_clv = ((unsigned16)in_val) << FAT_FAT12_SHIFT;
    358 #endif
    359340                *((unsigned8 *)(block0->buffer + ofs)) =
    360341                        (*((unsigned8 *)(block0->buffer + ofs))) & 0x0F;
     
    392373            else
    393374            {
    394 #if 0
    395               /*
    396                * do not perform endian conversion explicitely,
    397                * because following code will enforce little
    398                * endian format implicitly!
    399                */               
    400                 fat16_clv = CT_LE_W((((unsigned16)in_val) & FAT_FAT12_MASK));
    401 #else
    402375                fat16_clv = ((unsigned16)in_val) & FAT_FAT12_MASK;
    403 #endif
    404376                *((unsigned8 *)(block0->buffer + ofs)) &= 0x00;
    405377
Note: See TracChangeset for help on using the changeset viewer.