summaryrefslogtreecommitdiff
path: root/sys/dev/pci/cz.c
diff options
context:
space:
mode:
authorjan <jan@cvs.openbsd.org>2021-01-01 10:21:27 +0000
committerjan <jan@cvs.openbsd.org>2021-01-01 10:21:27 +0000
commit603d8fc4761c7611dfb26e924e41e79fb7340f2d (patch)
treed8899abed41941ac5846c0e102ec54507d0e0c48 /sys/dev/pci/cz.c
parent5d6b0fcfa1215d5d8b34a48d573a88647a476c5f (diff)
Remove useless redundant call of ttyopen().
Also remove dead DIALOUT macro. ok mpi@
Diffstat (limited to 'sys/dev/pci/cz.c')
-rw-r--r--sys/dev/pci/cz.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c
index c6ed06e600e..8642be135fc 100644
--- a/sys/dev/pci/cz.c
+++ b/sys/dev/pci/cz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cz.c,v 1.24 2020/05/21 09:31:59 mpi Exp $ */
+/* $OpenBSD: cz.c,v 1.25 2021/01/01 10:21:26 jan Exp $ */
/* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */
/*-
@@ -835,7 +835,6 @@ cz_wait_pci_doorbell(struct cz_softc *cz, char *wstring)
#define CZTTYDIALOUT_MASK 0x80
-#define CZTTY_DIALOUT(dev) (minor((dev)) & CZTTYDIALOUT_MASK)
#define CZTTY_CZ(sc) ((sc)->sc_parent)
#define CZTTY_SOFTC(dev) cztty_getttysoftc(dev)
@@ -1034,10 +1033,6 @@ czttyopen(dev_t dev, int flags, int mode, struct proc *p)
splx(s);
- error = ttyopen(CZTTY_DIALOUT(dev), tp, p);
- if (error)
- goto bad;
-
error = (*linesw[tp->t_line].l_open)(dev, tp, p);
if (error)
goto bad;