Module Name:    src
Committed By:   uwe
Date:           Wed Jul 29 01:55:58 UTC 2020

Modified Files:
        src/sys/dev: cninit.c

Log Message:
cninit - don't reset cn_tab on entry.

cn_tab can be already set up by the MD startup code to point to an
early console vtable that can still be useful for debugging and as a
fallback.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/cninit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/cninit.c
diff -u src/sys/dev/cninit.c:1.13 src/sys/dev/cninit.c:1.14
--- src/sys/dev/cninit.c:1.13	Fri Jul 17 02:16:57 2020
+++ src/sys/dev/cninit.c	Wed Jul 29 01:55:58 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: cninit.c,v 1.13 2020/07/17 02:16:57 uwe Exp $	*/
+/*	$NetBSD: cninit.c,v 1.14 2020/07/29 01:55:58 uwe Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cninit.c,v 1.13 2020/07/17 02:16:57 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cninit.c,v 1.14 2020/07/29 01:55:58 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -59,8 +59,6 @@ cninit(void)
 	struct consdev *bestMatch;
 	struct consdev *cp;
 
-	cn_tab = NULL;
-
 	/*
 	 * Collect information about all possible consoles
 	 * and find the one with highest priority
@@ -84,7 +82,6 @@ cninit(void)
 	 * Turn on console
 	 */
 	{
-		/* XXX: can this ever be non-NULL? */
 		struct consdev *old_cn_tab = cn_tab;
 
 		/* cn_init may set cn_tab to self */

Reply via email to