From 997c3234a66d2923bcde64fcb1f1eafd62f5c1af Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 7 May 1996 07:47:34 +0000 Subject: [PATCH] delete impossible to reach code, use more defined constants --- sys/arch/mvme68k/dev/cl.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index 6f4e761ee79..c74e7ddb477 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.10 1996/04/28 11:06:00 deraadt Exp $ */ +/* $OpenBSD: cl.c,v 1.11 1996/05/07 07:47:34 deraadt Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -351,13 +351,10 @@ clattach(parent, self, aux) sc->sc_pcctwo->pcc2_sccerr = 0x01; /* clear errors */ /* enable all interrupts at ca_ipl */ - sc->sc_pcctwo->pcc2_sccirq = 0x10 | (ca->ca_ipl & 0x7); - sc->sc_pcctwo->pcc2_scctx = 0x10 | (ca->ca_ipl & 0x7); - sc->sc_pcctwo->pcc2_sccrx = 0x10 | (ca->ca_ipl & 0x7); + sc->sc_pcctwo->pcc2_sccirq = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7); + sc->sc_pcctwo->pcc2_scctx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7); + sc->sc_pcctwo->pcc2_sccrx = PCC2_IRQ_IEN | (ca->ca_ipl & 0x7); break; - default: - /* oops */ - panic ("cl driver on unknown bus\n"); } evcnt_attach(&sc->sc_dev, "intr", &sc->sc_txintrcnt); -- 2.20.1