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.
This commit is contained in:
parent
14851ec048
commit
8cfd611d33
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user