diff options
| author | 2020-02-13 15:11:32 +0000 | |
|---|---|---|
| committer | 2020-02-13 15:11:32 +0000 | |
| commit | f4b58f5aed2fc151bbb9cee8f4b3a60a5eafd46c (patch) | |
| tree | da4cc1d7c313b2ebe34b0f3e4e58578b4a6785c0 /sys/dev/ic/mpi.c | |
| parent | remove macros which defined extern "C" for C++ (diff) | |
| download | wireguard-openbsd-f4b58f5aed2fc151bbb9cee8f4b3a60a5eafd46c.tar.xz wireguard-openbsd-f4b58f5aed2fc151bbb9cee8f4b3a60a5eafd46c.zip | |
Nuke *_minphys() functions that either simply apply MAXPHYS or do
nothing at all. MAXPHYS will be applied in minphys() and nothing at
all, well, doesn't do anything.
Also remove any '#define <blah> MAXPHYS' statements used solely to
disguise MAXPHYS in said functions.
Diffstat (limited to 'sys/dev/ic/mpi.c')
| -rw-r--r-- | sys/dev/ic/mpi.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 45f27fc36b8..276f540c9e2 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.211 2020/01/27 03:35:05 krw Exp $ */ +/* $OpenBSD: mpi.c,v 1.212 2020/02/13 15:11:32 krw Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -64,13 +64,12 @@ struct cfdriver mpi_cd = { void mpi_scsi_cmd(struct scsi_xfer *); void mpi_scsi_cmd_done(struct mpi_ccb *); -void mpi_minphys(struct buf *, struct scsi_link *); int mpi_scsi_probe(struct scsi_link *); int mpi_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int); struct scsi_adapter mpi_switch = { - mpi_scsi_cmd, mpi_minphys, mpi_scsi_probe, NULL, mpi_scsi_ioctl + mpi_scsi_cmd, NULL, mpi_scsi_probe, NULL, mpi_scsi_ioctl }; struct mpi_dmamem *mpi_dmamem_alloc(struct mpi_softc *, size_t); @@ -1600,14 +1599,6 @@ mpi_load_xs(struct mpi_ccb *ccb) return (0); } -void -mpi_minphys(struct buf *bp, struct scsi_link *sl) -{ - /* XXX */ - if (bp->b_bcount > MAXPHYS) - bp->b_bcount = MAXPHYS; -} - int mpi_scsi_probe_virtual(struct scsi_link *link) { |
