diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-12-05 18:42:15 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-12-05 18:42:15 +0000 |
commit | b294fc68427dc2c6cb6af7eddd235921b1574202 (patch) | |
tree | 5786916656edfec208baad428c45f034d88bafb9 /sys/scsi/ch.c | |
parent | 89d62d7c0c01ab249be83ae311e8d08e2ecc0777 (diff) |
Shrink scsi_mode_do_sense() parameter list by eliminating the three
pointers returning possible block descriptor values for block size,
block count and density. Most calls were passing "NULL, NULL, NULL"
since they did not care.
Call scsi_parse_blkdesc() directly in those few cases where one or
more of the values is of interest.
No intentional functional change.
Diffstat (limited to 'sys/scsi/ch.c')
-rw-r--r-- | sys/scsi/ch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index 856a0a13714..d47b3bc2f5d 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ch.c,v 1.62 2019/12/01 15:41:43 krw Exp $ */ +/* $OpenBSD: ch.c,v 1.63 2019/12/05 18:42:14 krw Exp $ */ /* $NetBSD: ch.c,v 1.26 1997/02/21 22:06:52 thorpej Exp $ */ /* @@ -673,7 +673,7 @@ ch_get_params(struct ch_softc *sc, int flags) * Grab info from the element address assignment page (0x1d). */ error = scsi_do_mode_sense(sc->sc_link, EA_PAGE, data, - (void **)&ea, NULL, NULL, NULL, sizeof(*ea), flags, &big); + (void **)&ea, sizeof(*ea), flags, &big); if (error == 0 && ea == NULL) error = EIO; if (error != 0) { @@ -700,7 +700,7 @@ ch_get_params(struct ch_softc *sc, int flags) * Grab info from the capabilities page (0x1f). */ error = scsi_do_mode_sense(sc->sc_link, CAP_PAGE, data, - (void **)&cap, NULL, NULL, NULL, sizeof(*cap), flags, &big); + (void **)&cap, sizeof(*cap), flags, &big); if (error == 0 && cap == NULL) error = EIO; if (error != 0) { |