Skip to content

Commit

Permalink
core/fs/fat/fat.c: remove variables set but not used
Browse files Browse the repository at this point in the history
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 16, 2011
1 parent f62483a commit e9296c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/fs/fat/fat.c
Expand Up @@ -592,7 +592,7 @@ static int vfat_readdir(struct file *file, struct dirent *dirent)
char filename[261];
int name_len = 0;

uint8_t vfat_init, vfat_next, vfat_csum;
uint8_t vfat_next, vfat_csum;
uint8_t id;
int entries_left;
bool long_entry = false;
Expand All @@ -619,14 +619,12 @@ static int vfat_readdir(struct file *file, struct dirent *dirent)
id = long_de->id;

if (id & 0x40) {
/* init vfat_csum and vfat_init */
/* init vfat_csum */
vfat_csum = long_de->checksum;
id &= 0x3f;
if (id >= 20)
goto invalid; /* Too long! */

vfat_init = id;

/* ZERO the long_name buffer */
memset(long_name, 0, sizeof long_name);
} else {
Expand Down

0 comments on commit e9296c0

Please sign in to comment.