diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-27 07:41:03 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-01-27 07:41:03 +0000 |
commit | 9eb934abe606de3eb0db713a571cbb221b1998da (patch) | |
tree | 4177f228bc63ebc59b2f6772f319d1ab9f571812 /sys/scsi/st.c | |
parent | 67a51e1e0e530e3bdc769a995c42cd966900116a (diff) |
Make the commonalities of cdminphys, sdminphys and stminphys more
obvious by consistently using the variable names and idiom of
sdminphys.
No functional change.
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r-- | sys/scsi/st.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 804fda26b20..027a31fb262 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.174 2020/01/26 00:53:31 krw Exp $ */ +/* $OpenBSD: st.c,v 1.175 2020/01/27 07:41:02 krw Exp $ */ /* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */ /* @@ -1000,17 +1000,19 @@ st_buf_done(struct scsi_xfer *xs) void stminphys(struct buf *bp) { - struct st_softc *st; + struct scsi_link *link; + struct st_softc *sc; - st = stlookup(STUNIT(bp->b_dev)); - if (st == NULL) + sc = stlookup(STUNIT(bp->b_dev)); + if (sc == NULL) return; + link = sc->sc_link; - (*st->sc_link->adapter->dev_minphys)(bp, st->sc_link); - if (st->sc_link->adapter->dev_minphys != scsi_minphys) - scsi_minphys(bp, st->sc_link); + (*link->adapter->dev_minphys)(bp, link); + if (link->adapter->dev_minphys != scsi_minphys) + scsi_minphys(bp, link); - device_unref(&st->sc_dev); + device_unref(&sc->sc_dev); } int |