summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_cons.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r--sys/kern/tty_cons.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 10aeaff..a8221a4 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -208,11 +208,6 @@ cnadd(struct consdev *cn)
if (cnd->cnd_cn != NULL)
return (ENOMEM);
cnd->cnd_cn = cn;
- if (cn->cn_name[0] == '\0' && cn->cn_dev != NULL) {
- strcpy(cn->cn_name, devtoname(cn->cn_dev));
- /* XXX: it is unclear if/where this print might output */
- printf("NOTE: console \"%s\" didn't set name\n", cn->cn_name);
- }
if (cn->cn_name[0] == '\0') {
/* XXX: it is unclear if/where this print might output */
printf("WARNING: console at %p has no name\n", cn);
OpenPOWER on IntegriCloud