summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-12-28 22:35:10 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-12-28 22:35:10 +0000
commit19934a1110331cea23fde6583b5695245e16046b (patch)
tree39c59f579c2168d5b2f935047f9fd6338d93bd99 /firmware
parentda848576312800dc229624e928d132d0702c1854 (diff)
downloadrockbox-19934a1110331cea23fde6583b5695245e16046b.tar.gz
rockbox-19934a1110331cea23fde6583b5695245e16046b.tar.bz2
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/fat.c8
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
static int read_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned int entry)
{
+#ifdef HAVE_FAT16SUPPORT
#ifndef HAVE_MULTIVOLUME
struct bpb* fat_bpb = &fat_bpbs[0];
#endif
-#ifdef HAVE_FAT16SUPPORT
if (fat_bpb->is_fat16)
{
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)
static int get_next_cluster(IF_MV2(struct bpb* fat_bpb,) int cluster)
{
-#ifndef HAVE_MULTIVOLUME
- struct bpb* fat_bpb = &fat_bpbs[0];
-#endif
int next_cluster;
int eof_mark = FAT_EOF_MARK;
#ifdef HAVE_FAT16SUPPORT
+#ifndef HAVE_MULTIVOLUME
+ struct bpb* fat_bpb = &fat_bpbs[0];
+#endif
if (fat_bpb->is_fat16)
{
eof_mark &= 0xFFFF; /* only 16 bit */