svn commit: r220690 - head/sys/cam/scsi

Jaakko Heinonen jh at FreeBSD.org
Sat Apr 16 08:38:12 UTC 2011


Author: jh
Date: Sat Apr 16 08:38:11 2011
New Revision: 220690
URL: http://svn.freebsd.org/changeset/base/220690

Log:
  Move a comment to the right place. The rearrange done in r208928 left
  the comment to a wrong place.

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Sat Apr 16 07:32:57 2011	(r220689)
+++ head/sys/cam/scsi/scsi_da.c	Sat Apr 16 08:38:11 2011	(r220690)
@@ -1231,10 +1231,6 @@ daregister(struct cam_periph *periph, vo
 	TASK_INIT(&softc->sysctl_task, 0, dasysctlinit, periph);
 
 	/*
-	 * Register this media as a disk
-	 */
-
-	/*
 	 * Add async callbacks for bus reset and
 	 * bus device reset calls.  I don't bother
 	 * checking if this fails as, in most cases,
@@ -1291,6 +1287,9 @@ daregister(struct cam_periph *periph, vo
 	else if (softc->minimum_cmd_size > 12)
 		softc->minimum_cmd_size = 16;
 
+	/*
+	 * Register this media as a disk.
+	 */
 	softc->disk = disk_alloc();
 	softc->disk->d_devstat = devstat_new_entry(periph->periph_name,
 			  periph->unit_number, 0,


More information about the svn-src-all mailing list