chain.c32: remove clobber of drivename/partition
authorH. Peter Anvin <hpa@zytor.com>
Thu, 21 May 2009 14:22:53 +0000 (07:22 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 21 May 2009 14:22:53 +0000 (07:22 -0700)
Remove a clobber of drivename and partition, after we have spent time
computing what the should have been...

Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/chain.c

index ead908f..7c7c9eb 100644 (file)
@@ -651,9 +651,6 @@ int main(int argc, char *argv[])
     regs.ip = regs.esp.l = 0x7c00;
   }
 
-  drivename = argv[1];
-  partition = argv[2];         /* Possibly null */
-
   hd = 0;
   if ( !strncmp(drivename, "mbr", 3) ) {
     drive = find_disk(strtoul(drivename+4, NULL, 0));