diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:35:10 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-12-28 22:35:10 +0000 |
commit | 19934a1110331cea23fde6583b5695245e16046b (patch) | |
tree | 39c59f579c2168d5b2f935047f9fd6338d93bd99 | |
parent | da848576312800dc229624e928d132d0702c1854 (diff) | |
download | rockbox-19934a1110331cea23fde6583b5695245e16046b.tar.gz rockbox-19934a1110331cea23fde6583b5695245e16046b.zip |
killed a warning for boxes not supporting FAT16
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5515 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/fat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index f0865eb985..b4b256c142 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -843,10 +843,10 @@ static int update_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned int entry, uns | |||
843 | 843 | ||
844 | static int read_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned int entry) | 844 | static int read_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned int entry) |
845 | { | 845 | { |
846 | #ifdef HAVE_FAT16SUPPORT | ||
846 | #ifndef HAVE_MULTIVOLUME | 847 | #ifndef HAVE_MULTIVOLUME |
847 | struct bpb* fat_bpb = &fat_bpbs[0]; | 848 | struct bpb* fat_bpb = &fat_bpbs[0]; |
848 | #endif | 849 | #endif |
849 | #ifdef HAVE_FAT16SUPPORT | ||
850 | if (fat_bpb->is_fat16) | 850 | if (fat_bpb->is_fat16) |
851 | { | 851 | { |
852 | int sector = entry / CLUSTERS_PER_FAT16_SECTOR; | 852 | int sector = entry / CLUSTERS_PER_FAT16_SECTOR; |
@@ -882,13 +882,13 @@ static int read_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned int entry) | |||
882 | 882 | ||
883 | static int get_next_cluster(IF_MV2(struct bpb* fat_bpb,) int cluster) | 883 | static int get_next_cluster(IF_MV2(struct bpb* fat_bpb,) int cluster) |
884 | { | 884 | { |
885 | #ifndef HAVE_MULTIVOLUME | ||
886 | struct bpb* fat_bpb = &fat_bpbs[0]; | ||
887 | #endif | ||
888 | int next_cluster; | 885 | int next_cluster; |
889 | int eof_mark = FAT_EOF_MARK; | 886 | int eof_mark = FAT_EOF_MARK; |
890 | 887 | ||
891 | #ifdef HAVE_FAT16SUPPORT | 888 | #ifdef HAVE_FAT16SUPPORT |
889 | #ifndef HAVE_MULTIVOLUME | ||
890 | struct bpb* fat_bpb = &fat_bpbs[0]; | ||
891 | #endif | ||
892 | if (fat_bpb->is_fat16) | 892 | if (fat_bpb->is_fat16) |
893 | { | 893 | { |
894 | eof_mark &= 0xFFFF; /* only 16 bit */ | 894 | eof_mark &= 0xFFFF; /* only 16 bit */ |