summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_pci.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-04-02 10:58:55 +0000
committermav <mav@FreeBSD.org>2017-04-02 10:58:55 +0000
commit2fd31b5ca2e2d6698ec39163985b3d44537fe391 (patch)
tree43a0c8380c1977ad090107dc3bdb7d468c4ee1f6 /sys/dev/isp/isp_pci.c
parentfe1ff12d3e59bfbe12ad74705e3c55e84b702521 (diff)
downloadFreeBSD-src-2fd31b5ca2e2d6698ec39163985b3d44537fe391.zip
FreeBSD-src-2fd31b5ca2e2d6698ec39163985b3d44537fe391.tar.gz
MFC r315682, r315683: Remove some dead code left after r246713.
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r--sys/dev/isp/isp_pci.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index a6f10ea..97dbc94 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1835,24 +1835,11 @@ typedef struct {
void *cmd_token;
void *rq; /* original request */
int error;
- bus_size_t mapsize;
} mush_t;
#define MUSHERR_NOQENTRIES -2
#ifdef ISP_TARGET_MODE
-static void tdma2_2(void *, bus_dma_segment_t *, int, bus_size_t, int);
-static void tdma2(void *, bus_dma_segment_t *, int, int);
-
-static void
-tdma2_2(void *arg, bus_dma_segment_t *dm_segs, int nseg, bus_size_t mapsize, int error)
-{
- mush_t *mp;
- mp = (mush_t *)arg;
- mp->mapsize = mapsize;
- tdma2(arg, dm_segs, nseg, error);
-}
-
static void
tdma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
{
@@ -1916,18 +1903,6 @@ tdma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
}
#endif
-static void dma2_2(void *, bus_dma_segment_t *, int, bus_size_t, int);
-static void dma2(void *, bus_dma_segment_t *, int, int);
-
-static void
-dma2_2(void *arg, bus_dma_segment_t *dm_segs, int nseg, bus_size_t mapsize, int error)
-{
- mush_t *mp;
- mp = (mush_t *)arg;
- mp->mapsize = mapsize;
- dma2(arg, dm_segs, nseg, error);
-}
-
static void
dma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
{
@@ -1997,7 +1972,6 @@ isp_pci_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, void *ff)
{
mush_t mush, *mp;
void (*eptr)(void *, bus_dma_segment_t *, int, int);
- void (*eptr2)(void *, bus_dma_segment_t *, int, bus_size_t, int);
int error;
mp = &mush;
@@ -2005,19 +1979,13 @@ isp_pci_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, void *ff)
mp->cmd_token = csio;
mp->rq = ff;
mp->error = 0;
- mp->mapsize = 0;
#ifdef ISP_TARGET_MODE
- if (csio->ccb_h.func_code == XPT_CONT_TARGET_IO) {
+ if (csio->ccb_h.func_code == XPT_CONT_TARGET_IO)
eptr = tdma2;
- eptr2 = tdma2_2;
- } else
+ else
#endif
- {
eptr = dma2;
- eptr2 = dma2_2;
- }
-
error = bus_dmamap_load_ccb(isp->isp_osinfo.dmat, PISP_PCMD(csio)->dmap,
(union ccb *)csio, eptr, mp, 0);
OpenPOWER on IntegriCloud