delete impossible to reach code, use more defined constants
authorderaadt <deraadt@openbsd.org>
Tue, 7 May 1996 07:47:34 +0000 (07:47 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 7 May 1996 07:47:34 +0000 (07:47 +0000)
sys/arch/mvme68k/dev/cl.c

index 6f4e761..c74e7dd 100644 (file)
@@ -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);