summaryrefslogtreecommitdiffstats
path: root/sys/dev/ncv
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 22:05:07 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 22:05:07 +0000
commita24eb2156cdb6c469f94edd93f26ab3034b5c17b (patch)
treee4fc62f2d2451e71dc38b10a85c5ebc8fa0cc144 /sys/dev/ncv
parent42f3c7594b4ad06e3fc43947be905ee82b2fe147 (diff)
downloadFreeBSD-src-a24eb2156cdb6c469f94edd93f26ab3034b5c17b.zip
FreeBSD-src-a24eb2156cdb6c469f94edd93f26ab3034b5c17b.tar.gz
Use the 'slp' local variable that was otherwise unused instead of casting
the driver softc under the assumption that the first part of it was a struct scsi_low_softc.
Diffstat (limited to 'sys/dev/ncv')
-rw-r--r--sys/dev/ncv/ncr53c500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ncv/ncr53c500.c b/sys/dev/ncv/ncr53c500.c
index dfbfd3f..bb9e1d8 100644
--- a/sys/dev/ncv/ncr53c500.c
+++ b/sys/dev/ncv/ncr53c500.c
@@ -440,7 +440,7 @@ ncv_world_start(sc, fdone)
ncvhw_init(iot, ioh, &sc->sc_hw);
s = splcam();
- scsi_low_bus_reset((struct scsi_low_softc *) sc);
+ scsi_low_bus_reset(slp);
ncvhw_select_register_0(iot, ioh, &sc->sc_hw);
bus_space_read_1(sc->sc_iot, sc->sc_ioh, cr0_stat);
OpenPOWER on IntegriCloud