diff --git a/sys/arch/i386/boot/disk.c b/sys/arch/i386/boot/disk.c index 1a56dd203d6a..0f37b2471d1e 100644 --- a/sys/arch/i386/boot/disk.c +++ b/sys/arch/i386/boot/disk.c @@ -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(); }