diff --git a/iop/usb/usbhdfsd/src/fat_write.c b/iop/usb/usbhdfsd/src/fat_write.c index accfa07b5ec..2e375748919 100644 --- a/iop/usb/usbhdfsd/src/fat_write.c +++ b/iop/usb/usbhdfsd/src/fat_write.c @@ -2198,12 +2198,7 @@ int fat_writeFile(fat_driver* fatd, fat_dir* fatDir, int* updateClusterIndices, bufSize = mass_device->sectorSize; } - /* SP193: By right, the sector's content should be retained if it has already been allocated and is going to be partially written-to. - Since this function wasn't designed to be able to tell allocated sectors from unallocated sectors, assume that all partial writes are to allocated sectors. */ - if((bufSize - dataSkip) != mass_device->sectorSize) - ret = READ_SECTOR(fatd->dev, startSector + j, sbuf); - else - ret = ALLOC_SECTOR(fatd->dev, startSector + j, sbuf); + ret = READ_SECTOR(fatd->dev, startSector + j, sbuf); if (ret < 0) { XPRINTF("USBHDFSD: Read sector failed ! sector=%u\n", startSector + j); return bufferPos; //return number of bytes already written