summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-12-18 08:31:13 +0000
committermav <mav@FreeBSD.org>2014-12-18 08:31:13 +0000
commite998495ddf03720f4a0985e1e540e3a472dd88ef (patch)
treeec7c44908a9bdda6a63b59b4cb4eba6af3aba967
parentef698a8b3dacdad2e79ec0343e4a3f3d29318915 (diff)
downloadFreeBSD-src-e998495ddf03720f4a0985e1e540e3a472dd88ef.zip
FreeBSD-src-e998495ddf03720f4a0985e1e540e3a472dd88ef.tar.gz
MFC r275455: Remove some unused code.
-rw-r--r--sys/cam/ctl/ctl.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 0315907..fca226d 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -402,12 +402,6 @@ static int ctl_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
struct thread *td);
static uint32_t ctl_map_lun(int port_num, uint32_t lun);
static uint32_t ctl_map_lun_back(int port_num, uint32_t lun);
-#ifdef unused
-static union ctl_io *ctl_malloc_io(ctl_io_type io_type, uint32_t targ_port,
- uint32_t targ_target, uint32_t targ_lun,
- int can_wait);
-static void ctl_kfree_io(union ctl_io *io);
-#endif /* unused */
static int ctl_alloc_lun(struct ctl_softc *ctl_softc, struct ctl_lun *lun,
struct ctl_be_lun *be_lun, struct ctl_id target_id);
static int ctl_free_lun(struct ctl_lun *lun);
@@ -3701,43 +3695,6 @@ ctl_set_prkey(struct ctl_lun *lun, uint32_t residx, uint64_t key)
t[residx % CTL_MAX_INIT_PER_PORT] = key;
}
-#ifdef unused
-/*
- * The bus, target and lun are optional, they can be filled in later.
- * can_wait is used to determine whether we can wait on the malloc or not.
- */
-union ctl_io*
-ctl_malloc_io(ctl_io_type io_type, uint32_t targ_port, uint32_t targ_target,
- uint32_t targ_lun, int can_wait)
-{
- union ctl_io *io;
-
- if (can_wait)
- io = (union ctl_io *)malloc(sizeof(*io), M_CTL, M_WAITOK);
- else
- io = (union ctl_io *)malloc(sizeof(*io), M_CTL, M_NOWAIT);
-
- if (io != NULL) {
- io->io_hdr.io_type = io_type;
- io->io_hdr.targ_port = targ_port;
- /*
- * XXX KDM this needs to change/go away. We need to move
- * to a preallocated pool of ctl_scsiio structures.
- */
- io->io_hdr.nexus.targ_target.id = targ_target;
- io->io_hdr.nexus.targ_lun = targ_lun;
- }
-
- return (io);
-}
-
-void
-ctl_kfree_io(union ctl_io *io)
-{
- free(io, M_CTL);
-}
-#endif /* unused */
-
/*
* ctl_softc, pool_name, total_ctl_io are passed in.
* npool is passed out.
OpenPOWER on IntegriCloud