diff options
author | Moshe Piekarski <dev.rockbox@melachim.net> | 2011-09-17 22:49:30 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-06-30 21:11:52 +0000 |
commit | 0d24a7176e33dc6f5a67bf672d6ebea033903ce7 (patch) | |
tree | 2b1b5f6a8191e718459efdf65e5581e1b9b920f0 /firmware/common/disk.c | |
parent | a2b8204718ae755faca75b1a66385f05085c3dab (diff) | |
download | rockbox-0d24a7176e33dc6f5a67bf672d6ebea033903ce7.tar.gz rockbox-0d24a7176e33dc6f5a67bf672d6ebea033903ce7.zip |
Also remove the fat_partition_types array.
If we aren't going to check for the partition type, we don't need the array of
known FAT partition types.
Original Author: Torne Wuff <torne@wolfpuppy.org.uk>
Change-Id: I558d4287189408c513dfbca49e13906cdb7918b1
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index 25c7330032..795bed9457 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -68,17 +68,6 @@ | |||
68 | (((uint32_t)array[pos+0] << 0) | \ | 68 | (((uint32_t)array[pos+0] << 0) | \ |
69 | ((uint32_t)array[pos+1] << 8)) | 69 | ((uint32_t)array[pos+1] << 8)) |
70 | 70 | ||
71 | static const unsigned char fat_partition_types[] = | ||
72 | { | ||
73 | 0x0b, 0x1b, /* FAT32 + hidden variant */ | ||
74 | 0x0c, 0x1c, /* FAT32 (LBA) + hidden variant */ | ||
75 | #ifdef HAVE_FAT16SUPPORT | ||
76 | 0x04, 0x14, /* FAT16 <= 32MB + hidden variant */ | ||
77 | 0x06, 0x16, /* FAT16 > 32MB + hidden variant */ | ||
78 | 0x0e, 0x1e, /* FAT16 (LBA) + hidden variant */ | ||
79 | #endif | ||
80 | }; | ||
81 | |||
82 | /* space for 4 partitions on 2 drives */ | 71 | /* space for 4 partitions on 2 drives */ |
83 | static struct partinfo part[NUM_DRIVES*4]; | 72 | static struct partinfo part[NUM_DRIVES*4]; |
84 | /* mounted to which drive (-1 if none) */ | 73 | /* mounted to which drive (-1 if none) */ |