svn commit: r249511 - stable/9/sys/cam/ctl

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Apr 15 17:19:29 UTC 2013


Author: trasz
Date: Mon Apr 15 17:19:28 2013
New Revision: 249511
URL: http://svnweb.freebsd.org/changeset/base/249511

Log:
  MFC r249012:
  
  Remove unused code.

Modified:
  stable/9/sys/cam/ctl/scsi_ctl.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- stable/9/sys/cam/ctl/scsi_ctl.c	Mon Apr 15 17:16:12 2013	(r249510)
+++ stable/9/sys/cam/ctl/scsi_ctl.c	Mon Apr 15 17:19:28 2013	(r249511)
@@ -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)
 {


More information about the svn-src-stable-9 mailing list