Core: code clean
authorLiu Aleaxander <Aleaxander@gmail.com>
Mon, 13 Jul 2009 06:47:02 +0000 (14:47 +0800)
committerLiu Aleaxander <Aleaxander@gmail.com>
Mon, 13 Jul 2009 06:47:02 +0000 (14:47 +0800)
cleans the unused variables\18

core/diskio.c
core/fs.c
core/iso9660.c

index 7d3ec3f..90dccbe 100644 (file)
@@ -304,7 +304,8 @@ struct disk *disk_init(uint8_t devno, bool cdrom, sector_t part_start,
     disk.part_start    = part_start;
     disk.rdwr_sectors  = ebios ? edd_rdwr_sectors : chs_rdwr_sectors;
 
+#if 0
     dump_disk(&disk);
-
+#endif
     return &disk;
 }
index 3ebc0b1..165d07e 100644 (file)
--- a/core/fs.c
+++ b/core/fs.c
@@ -140,5 +140,4 @@ void fs_init(com32sys_t *regs)
     /* initialize the cache */
     if (fs.fs_dev->cache_data)
         cache_init(fs.fs_dev, blk_shift);
-    dump_dev(fs.fs_dev);
 }
index ed5e013..1ce710f 100644 (file)
@@ -41,22 +41,6 @@ uint16_t BufSafeBytes = TRACKBUF_SIZE;
 char ISOFileName[64];      /* ISO filename canonicalizatin buffer */
 char *ISOFileNameEnd = &ISOFileName[64];
 
-uint32_t FirstSecSum;         /* checksum of bytes 64-2048 */
-uint32_t ImageDwords;         /* isolinux.bin size, dwords */
-uint32_t InitStack;           /* Initial stack pointer (SS:SP) */
-uint16_t DiskSys;             /* Last INT 13h call */
-uint16_t ImageSectors;        /* isolinux.bin size, sectors */
-
-/* These following two are accessed as a single dword ... */
-uint16_t GetlinsecPtr;        /* the sector-read pointer */
-uint16_t BIOSType;
-uint8_t  DiskError;           /* Error code for disk I/O */
-uint8_t  DriveNumber;         /* CD-ROM BIOS drive number */
-uint8_t  ISOFlags;            /* Flags for ISO directory search */
-uint8_t  RetryCount;          /* Used for ISO directory search */
-uint16_t bsSecPerTrack;       /* Used in hybrid mode */
-uint16_t bsHeads;             /* Used in hybrid mode */
-
 /* 
  * use to store the block shift, since we treat the hd-mode as 512 bytes
  * sector size, 2048 bytes block size. we still treat the cdrom as 2048