libinstaller/fat.c: remove variables set but not used
authorH. Peter Anvin <hpa@zytor.com>
Wed, 16 Mar 2011 20:10:36 +0000 (13:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 16 Mar 2011 20:10:36 +0000 (13:10 -0700)
gcc 4.6 warns on variables set but not used, so remove them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
libinstaller/fat.c

index e210135..9cde00c 100644 (file)
@@ -42,15 +42,12 @@ void syslinux_make_bootsect(void *bs)
  */
 const char *syslinux_check_bootsect(const void *bs)
 {
-    int veryold;
     int sectorsize;
     long long sectors, fatsectors, dsectors;
     long long clusters;
     int rootdirents, clustersize;
     const struct boot_sector *sectbuf = bs;
 
-    veryold = 0;
-
     /* Must be 0xF0 or 0xF8..0xFF */
     if (get_8(&sectbuf->bsMedia) != 0xF0 && get_8(&sectbuf->bsMedia) < 0xF8)
        return "invalid media signature (not a FAT filesystem?)";