Remove unneeded variable.
This commit is contained in:
parent
17d1e137e0
commit
b83b02cc20
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disk.c,v 1.12 1995/03/12 00:10:58 mycroft Exp $ */
|
||||
/* $NetBSD: disk.c,v 1.13 1995/03/12 12:09:18 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Ported to boot 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
|
||||
|
@ -153,7 +153,6 @@ Bread(sector, addr)
|
|||
int sector;
|
||||
void *addr;
|
||||
{
|
||||
int error;
|
||||
|
||||
if (dosdev != ra_dev || sector < ra_first || sector >= ra_end) {
|
||||
int cyl, head, sec, nsec;
|
||||
|
@ -165,8 +164,8 @@ Bread(sector, addr)
|
|||
if (nsec > RA_SECTORS)
|
||||
nsec = RA_SECTORS;
|
||||
twiddle();
|
||||
while ((error = biosread(dosdev, cyl, head, sec, nsec, ra_buf)) != 0) {
|
||||
printf("Error %d: C:%d H:%d S:%d\n", error, cyl, head, sec);
|
||||
while (biosread(dosdev, cyl, head, sec, nsec, ra_buf)) {
|
||||
printf("Error: C:%d H:%d S:%d\n", cyl, head, sec);
|
||||
nsec = 1;
|
||||
twiddle();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue