Module Name: src
Committed By: christos
Date: Wed Jan 4 15:49:28 UTC 2017
Modified Files:
src/sys/dev/pci: nside.c
Log Message:
PR/51774: David Binderman: Remove unused variable.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/nside.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/nside.c
diff -u src/sys/dev/pci/nside.c:1.9 src/sys/dev/pci/nside.c:1.10
--- src/sys/dev/pci/nside.c:1.9 Mon Oct 7 15:51:55 2013
+++ src/sys/dev/pci/nside.c Wed Jan 4 10:49:28 2017
@@ -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 @@ void
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 @@ natsemi_setup_channel(struct ata_channel
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] |