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/e4222a5d5b23
branches:  trunk
changeset: 984144:e4222a5d5b23
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 2d24e489787b -r e4222a5d5b23 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 @@
        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