diff options
| author | Nils Wallménius <nils@rockbox.org> | 2007-02-25 15:44:55 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2007-02-25 15:44:55 +0000 |
| commit | e53e67014f93e4d5188620bd2219bc654d533bf4 (patch) | |
| tree | a59059a23065422731764c44919b02906e402f77 /firmware/drivers/fat.c | |
| parent | 2906c36df3403b8c8146718beedfc480766a9d6c (diff) | |
| download | rockbox-e53e67014f93e4d5188620bd2219bc654d533bf4.zip rockbox-e53e67014f93e4d5188620bd2219bc654d533bf4.tar.gz rockbox-e53e67014f93e4d5188620bd2219bc654d533bf4.tar.bz2 rockbox-e53e67014f93e4d5188620bd2219bc654d533bf4.tar.xz | |
Remove unused code, make comments c-style, make one private function static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12480 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/fat.c')
| -rw-r--r-- | firmware/drivers/fat.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 5e1124f..e3e1a75 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -221,15 +221,6 @@ static long cluster2sec(IF_MV2(struct bpb* fat_bpb,) long cluster) + fat_bpb->firstdatasector; } -long fat_startsector(IF_MV_NONVOID(int volume)) -{ -#ifndef HAVE_MULTIVOLUME - const int volume = 0; -#endif - struct bpb* fat_bpb = &fat_bpbs[volume]; - return fat_bpb->startsector; -} - void fat_size(IF_MV2(int volume,) unsigned long* size, unsigned long* free) { #ifndef HAVE_MULTIVOLUME @@ -1353,7 +1344,7 @@ static int add_dir_entry(struct fat_dir* dir, return 0; } -unsigned char char2dos(unsigned char c, int* randomize) +static unsigned char char2dos(unsigned char c, int* randomize) { switch(c) { @@ -1829,7 +1820,7 @@ static int free_direntries(struct fat_file* file) rc = fat_seek(&dir, sector); if (rc < 0) return rc * 10 - 7; - + rc = fat_readwrite(&dir, 1, buf, true); if (rc < 1) return rc * 10 - 8; |