[syslinux:master] core/fs/fat/fat.c: remove variables set but not used

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 16 13:19:01 PDT 2011


Commit-ID:  e9296c0185a766ce311a0373fced031a87d49395
Gitweb:     http://syslinux.zytor.com/commit/e9296c0185a766ce311a0373fced031a87d49395
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Mar 2011 13:10:36 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 16 Mar 2011 13:10:36 -0700

core/fs/fat/fat.c: remove variables set but not used

gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/fat/fat.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/fs/fat/fat.c b/core/fs/fat/fat.c
index 5902f48..c896b5e 100644
--- a/core/fs/fat/fat.c
+++ b/core/fs/fat/fat.c
@@ -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;
@@ -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 {



More information about the Syslinux-commits mailing list