From 9ab8e01991b965cf134b8fbf9beb1e1ca88ca98d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 25 Sep 1999 18:52:03 +0000 Subject: [PATCH] Remove a warning check which was too general. --- sys/fs/specfs/spec_vnops.c | 4 +--- sys/miscfs/specfs/spec_vnops.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 4a079468be31..237d8f513998 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -237,9 +237,7 @@ spec_open(ap) return (error); if (dsw->d_flags & D_TTY) { - if (!dev->si_tty) { - printf("Warning:%s: no si_tty\n", devtoname(dev)); - } else { + if (dev->si_tty) { struct tty *tp; tp = dev->si_tty; if (!tp->t_stop) { diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 4a079468be31..237d8f513998 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -237,9 +237,7 @@ spec_open(ap) return (error); if (dsw->d_flags & D_TTY) { - if (!dev->si_tty) { - printf("Warning:%s: no si_tty\n", devtoname(dev)); - } else { + if (dev->si_tty) { struct tty *tp; tp = dev->si_tty; if (!tp->t_stop) {