Module Name: src
Committed By: dyoung
Date: Tue Apr 27 18:55:12 UTC 2010
Modified Files:
src/sys/dev/scsipi: scsiconf.c
Log Message:
For clarity of scsidevdetached(), rename some variables: sc ->
self, dev -> child, ssc -> sc.
To generate a diff of this commit:
cvs rdiff -u -r1.255 -r1.256 src/sys/dev/scsipi/scsiconf.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/scsipi/scsiconf.c
diff -u src/sys/dev/scsipi/scsiconf.c:1.255 src/sys/dev/scsipi/scsiconf.c:1.256
--- src/sys/dev/scsipi/scsiconf.c:1.255 Thu Nov 12 19:44:17 2009
+++ src/sys/dev/scsipi/scsiconf.c Tue Apr 27 18:55:12 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: scsiconf.c,v 1.255 2009/11/12 19:44:17 dyoung Exp $ */
+/* $NetBSD: scsiconf.c,v 1.256 2010/04/27 18:55:12 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.255 2009/11/12 19:44:17 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.256 2010/04/27 18:55:12 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -353,18 +353,18 @@
}
static void
-scsidevdetached(device_t sc, device_t dev)
+scsidevdetached(device_t self, device_t child)
{
- struct scsibus_softc *ssc = device_private(sc);
- struct scsipi_channel *chan = ssc->sc_channel;
+ struct scsibus_softc *sc = device_private(self);
+ struct scsipi_channel *chan = sc->sc_channel;
struct scsipi_periph *periph;
int target, lun;
- target = device_locator(dev, SCSIBUSCF_TARGET);
- lun = device_locator(dev, SCSIBUSCF_LUN);
+ target = device_locator(child, SCSIBUSCF_TARGET);
+ lun = device_locator(child, SCSIBUSCF_LUN);
periph = scsipi_lookup_periph(chan, target, lun);
- KASSERT(periph->periph_dev == dev);
+ KASSERT(periph->periph_dev == child);
scsipi_remove_periph(chan, periph);
free(periph, M_DEVBUF);