simplify a few things

edge.strict_endians
flatcap 2005-11-05 01:34:21 +00:00
parent 5bbb43d947
commit a41e58f8aa
2 changed files with 2 additions and 19 deletions

View File

@ -96,8 +96,7 @@ BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b, const BOOL silent __attribute
/* Check sectors per cluster value is valid. */
ntfs_log_debug("Checking sectors per cluster... ");
switch (b->bpb.sectors_per_cluster) {
case 1: case 2: case 4: case 8: case 16:
case 32: case 64: case 128:
case 1: case 2: case 4: case 8: case 16: case 32: case 64: case 128:
break;
default:
goto not_ntfs;

View File

@ -75,23 +75,7 @@
*/
ntfs_volume *ntfs_volume_alloc(void)
{
ntfs_volume *vol;
vol = (ntfs_volume*)calloc(1, sizeof(ntfs_volume));
if (vol) {
vol->dev = NULL;
vol->vol_name = NULL;
vol->lcnbmp_ni = NULL;
vol->lcnbmp_na = NULL;
vol->mft_ni = NULL;
vol->mft_na = NULL;
vol->mftbmp_na = NULL;
vol->mftmirr_ni = NULL;
vol->mftmirr_na = NULL;
vol->upcase = NULL;
vol->attrdef = NULL;
}
return vol;
return calloc(1, sizeof(ntfs_volume));
}
/**