Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/bootxx boot1.c: remove a comment that's ...



details:   https://anonhg.NetBSD.org/src/rev/dd1b41f540cc
branches:  trunk
changeset: 379870:dd1b41f540cc
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Thu Jun 24 01:23:16 2021 +0000

description:
boot1.c: remove a comment that's no longer relevant/correct

In r. 1.13, a check of the return value in fd was removed, and a comment
about this ("...so keep going") added. Then in r. 1.19, the fd return
value check was reinstated (as the true underlying errno could be masked
by the fstat() call), so there is no "keep going" happening anymore.

diffstat:

 sys/arch/i386/stand/bootxx/boot1.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 4f8f8237563b -r dd1b41f540cc sys/arch/i386/stand/bootxx/boot1.c
--- a/sys/arch/i386/stand/bootxx/boot1.c        Wed Jun 23 21:43:38 2021 +0000
+++ b/sys/arch/i386/stand/bootxx/boot1.c        Thu Jun 24 01:23:16 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot1.c,v 1.20 2011/01/06 01:08:48 jakllsch Exp $      */
+/*     $NetBSD: boot1.c,v 1.21 2021/06/24 01:23:16 gutteridge Exp $    */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: boot1.c,v 1.20 2011/01/06 01:08:48 jakllsch Exp $");
+__RCSID("$NetBSD: boot1.c,v 1.21 2021/06/24 01:23:16 gutteridge Exp $");
 
 #include <lib/libsa/stand.h>
 #include <lib/libkern/libkern.h>
@@ -106,7 +106,6 @@ boot1(uint32_t biosdev, uint64_t *sector
        fd = ob();
 
 done:
-       /* if we fail here, so will fstat, so keep going */
        if (fd == -1 || fstat(fd, &sb) == -1)
                return "Can't open /boot\r\n";
 



Home | Main Index | Thread Index | Old Index