Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci PR/51774: David Binderman: Remove unused variable.



details:   https://anonhg.NetBSD.org/src/rev/a43230dd4d27
branches:  trunk
changeset: 820242:a43230dd4d27
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 04 15:49:28 2017 +0000

description:
PR/51774: David Binderman: Remove unused variable.

diffstat:

 sys/dev/pci/nside.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 1f5d79781c91 -r a43230dd4d27 sys/dev/pci/nside.c
--- a/sys/dev/pci/nside.c       Wed Jan 04 15:45:18 2017 +0000
+++ b/sys/dev/pci/nside.c       Wed Jan 04 15:49:28 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nside.c,v 1.9 2013/10/07 19:51:55 jakllsch Exp $       */
+/*     $NetBSD: nside.c,v 1.10 2017/01/04 15:49:28 christos Exp $      */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nside.c,v 1.9 2013/10/07 19:51:55 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nside.c,v 1.10 2017/01/04 15:49:28 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -156,7 +156,7 @@
 natsemi_setup_channel(struct ata_channel *chp)
 {
        struct ata_drive_datas *drvp;
-       int drive, ndrives = 0;
+       int drive;
        uint32_t idedma_ctl = 0;
         struct pciide_channel *cp = CHAN_TO_PCHAN(chp);
         struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
@@ -171,7 +171,6 @@
                if (drvp->drive_type == ATA_DRIVET_NONE)
                        continue;
 
-               ndrives++;
                /* add timing values, setup DMA if needed */
                if ((drvp->drive_flags & ATA_DRIVE_DMA) == 0) {
                        tim = natsemi_pio_pulse[drvp->PIO_mode] |



Home | Main Index | Thread Index | Old Index