Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia Rearrenge code a bit for the sake of another ...



details:   https://anonhg.NetBSD.org/src/rev/11dd7d6e9d90
branches:  trunk
changeset: 481526:11dd7d6e9d90
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Feb 01 10:00:41 2000 +0000

description:
Rearrenge code a bit for the sake of another device.

diffstat:

 sys/dev/pcmcia/if_awi_pcmcia.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r ffeda3928272 -r 11dd7d6e9d90 sys/dev/pcmcia/if_awi_pcmcia.c
--- a/sys/dev/pcmcia/if_awi_pcmcia.c    Tue Feb 01 08:58:25 2000 +0000
+++ b/sys/dev/pcmcia/if_awi_pcmcia.c    Tue Feb 01 10:00:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_awi_pcmcia.c,v 1.7 2000/02/01 08:58:25 enami Exp $ */
+/* $NetBSD: if_awi_pcmcia.c,v 1.8 2000/02/01 10:00:41 enami Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
 void   awi_pcmcia_disable __P((struct awi_softc *));
 
 struct awi_pcmcia_softc {
-       struct awi_softc sc_awi;                        /* real "awi" softc */
+       struct awi_softc sc_awi;                /* real "awi" softc */
 
        /* PCMCIA-specific goo */
        struct pcmcia_io_handle sc_pcioh;       /* PCMCIA i/o space info */
@@ -171,10 +171,8 @@
 {
        struct pcmcia_attach_args *pa = aux;
 
-       if (pa->manufacturer != PCMCIA_VENDOR_BAY)
-               return (0);
-
-       if (pa->product == PCMCIA_PRODUCT_BAY_STACK_650)
+       if (pa->manufacturer == PCMCIA_VENDOR_BAY &&
+           pa->product == PCMCIA_PRODUCT_BAY_STACK_650)
                return (1);
 
        return (0);



Home | Main Index | Thread Index | Old Index