Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add a missing return statement in an error case, ...



details:   https://anonhg.NetBSD.org/src/rev/2bcb29eeba06
branches:  trunk
changeset: 516185:2bcb29eeba06
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Oct 18 06:29:55 2001 +0000

description:
Add a missing return statement in an error case, and g/c some
cruft that's not relevant in the PCI world.

diffstat:

 sys/dev/pci/if_hme_pci.c |  25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diffs (42 lines):

diff -r 19b3505f5238 -r 2bcb29eeba06 sys/dev/pci/if_hme_pci.c
--- a/sys/dev/pci/if_hme_pci.c  Thu Oct 18 06:28:17 2001 +0000
+++ b/sys/dev/pci/if_hme_pci.c  Thu Oct 18 06:29:55 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_hme_pci.c,v 1.7 2001/10/05 17:49:43 thorpej Exp $   */
+/*     $NetBSD: if_hme_pci.c,v 1.8 2001/10/18 06:29:55 thorpej Exp $   */
 
 /*
  * Copyright (c) 2000 Matthew R. Green
@@ -189,31 +189,10 @@
                if (intrstr != NULL)
                        printf(" at %s", intrstr);
                printf("\n");
+               return;
        }
        printf("%s: interrupting at %s\n", sc->sc_dev.dv_xname, intrstr);
 
-#if 0
-       /*
-        * Get transfer burst size from PROM and pass it on
-        * to the back-end driver.
-        */
-       sbusburst = ((struct sbus_softc *)parent)->sc_burst;
-       if (sbusburst == 0)
-               sbusburst = SBUS_BURST_32 - 1; /* 1->16 */
-
-       burst = PROM_getpropint(node, "burst-sizes", -1);
-       if (burst == -1)
-               /* take SBus burst sizes */
-               burst = sbusburst;
-
-       /* Clamp at parent's burst sizes */
-       burst &= sbusburst;
-
-       /* Translate into plain numerical format */
-       sc->sc_burst =  (burst & SBUS_BURST_32) ? 32 :
-                       (burst & SBUS_BURST_16) ? 16 : 0;
-#endif
-
        sc->sc_burst = 16;      /* XXX */
 
        /* Finish off the attach. */



Home | Main Index | Thread Index | Old Index