diff options
author | trasz <trasz@FreeBSD.org> | 2013-04-02 09:45:34 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2013-04-02 09:45:34 +0000 |
commit | 693df692467c616cfcb266379e935df20b66f4c8 (patch) | |
tree | 61d5811d33b1eda15270720facb95abfea6fe7ab | |
parent | fc0ee61e339d1b511de8788e6fa48886ac862f2d (diff) | |
download | FreeBSD-src-693df692467c616cfcb266379e935df20b66f4c8.zip FreeBSD-src-693df692467c616cfcb266379e935df20b66f4c8.tar.gz |
Remove unused code.
Reviewed by: ken
-rw-r--r-- | sys/cam/ctl/scsi_ctl.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c index 568bd24..c6f3700 100644 --- a/sys/cam/ctl/scsi_ctl.c +++ b/sys/cam/ctl/scsi_ctl.c @@ -246,36 +246,6 @@ MODULE_DEPEND(ctlfe, cam, 1, 1, 1); extern struct ctl_softc *control_softc; extern int ctl_disable; -#ifdef seems_unused -int -ctlfeinitialize(void) -{ - cam_status status; - - /* Don't initialize if we're disabled */ - if (ctl_disable != 0) - return (0); - - STAILQ_INIT(&ctlfe_softc_list); - - mtx_init(&ctlfe_list_mtx, ctlfe_mtx_desc, NULL, MTX_DEF); - - xpt_lock_buses(); - periphdriver_register(&ctlfe_driver); - xpt_unlock_buses(); - - status = xpt_register_async(AC_PATH_REGISTERED | AC_PATH_DEREGISTERED | - AC_CONTRACT, ctlfeasync, NULL, NULL); - - if (status != CAM_REQ_CMP) { - printf("ctl: Failed to attach async callback due to CAM " - "status 0x%x!\n", status); - } - - return (0); -} -#endif - void ctlfeshutdown(void) { |