aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2017-03-21 13:49:43 +0000
committerAlexander Motin <mav@FreeBSD.org>2017-03-21 13:49:43 +0000
commit97dfdd4efab9ee40a99566f5690e62702fe8eab0 (patch)
tree5d8136ba1736acdebb7c329aa9303e9eab37133d
parent31c161a61524890a2936fcb9affe3d4c68ee1b0a (diff)
downloadsrc-97dfdd4efab9ee40a99566f5690e62702fe8eab0.tar.gz
src-97dfdd4efab9ee40a99566f5690e62702fe8eab0.zip
Remove some dead code left after r246713.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=315682
-rw-r--r--sys/dev/isp/isp_pci.c34
-rw-r--r--sys/dev/isp/isp_sbus.c7
2 files changed, 3 insertions, 38 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c
index a6f10eac0b50..b726346ce212 100644
--- a/sys/dev/isp/isp_pci.c
+++ b/sys/dev/isp/isp_pci.c
@@ -1841,18 +1841,6 @@ typedef struct {
#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 +1904,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 +1973,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;
@@ -2008,16 +1983,11 @@ isp_pci_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, void *ff)
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);
diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c
index a5223cc62c6d..9886712683d7 100644
--- a/sys/dev/isp/isp_sbus.c
+++ b/sys/dev/isp/isp_sbus.c
@@ -590,8 +590,6 @@ typedef struct {
#define MUSHERR_NOQENTRIES -2
-static void dma2(void *, bus_dma_segment_t *, int, int);
-
static void
dma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
{
@@ -634,7 +632,6 @@ static int
isp_sbus_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, void *ff)
{
mush_t mush, *mp;
- void (*eptr)(void *, bus_dma_segment_t *, int, int);
int error;
mp = &mush;
@@ -644,10 +641,8 @@ isp_sbus_dmasetup(ispsoftc_t *isp, struct ccb_scsiio *csio, void *ff)
mp->error = 0;
mp->mapsize = 0;
- eptr = dma2;
-
error = bus_dmamap_load_ccb(isp->isp_osinfo.dmat,
- PISP_PCMD(csio)->dmap, (union ccb *)csio, eptr, mp, 0);
+ PISP_PCMD(csio)->dmap, (union ccb *)csio, dma2, mp, 0);
if (error == EINPROGRESS) {
bus_dmamap_unload(isp->isp_osinfo.dmat, PISP_PCMD(csio)->dmap);
mp->error = EINVAL;