PERFORCE change 170503 for review

Alexander Motin mav at FreeBSD.org
Wed Nov 11 19:45:44 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=170503

Change 170503 by mav at mav_mavbook on 2009/11/11 19:45:37

	Remove unused variable qfrozen_cnt.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_periph.c#42 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_periph.c#42 (text+ko) ====

@@ -985,7 +985,6 @@
 	int		sense;
 	struct scsi_start_stop_unit *scsi_cmd;
 	u_int32_t	relsim_flags, timeout;
-	u_int32_t	qfrozen_cnt;
 	int		xpt_done_ccb;
 
 	xpt_done_ccb = FALSE;
@@ -1002,11 +1001,11 @@
 	 * Unfreeze the queue once if it is already frozen..
 	 */
 	if (frozen != 0) {
-		qfrozen_cnt = cam_release_devq(done_ccb->ccb_h.path,
-					      /*relsim_flags*/0,
-					      /*openings*/0,
-					      /*timeout*/0,
-					      /*getcount_only*/0);
+		cam_release_devq(done_ccb->ccb_h.path,
+				 /*relsim_flags*/0,
+				 /*openings*/0,
+				 /*timeout*/0,
+				 /*getcount_only*/0);
 	}
 
 	switch (status) {
@@ -1186,11 +1185,11 @@
 	if (done_ccb->ccb_h.retry_count > 0)
 		done_ccb->ccb_h.retry_count--;
 
-	qfrozen_cnt = cam_release_devq(done_ccb->ccb_h.path,
-				      /*relsim_flags*/relsim_flags,
-				      /*openings*/0,
-				      /*timeout*/timeout,
-				      /*getcount_only*/0);
+	cam_release_devq(done_ccb->ccb_h.path,
+			 /*relsim_flags*/relsim_flags,
+			 /*openings*/0,
+			 /*timeout*/timeout,
+			 /*getcount_only*/0);
 	if (xpt_done_ccb == TRUE)
 		(*done_ccb->ccb_h.cbfcnp)(periph, done_ccb);
 }


More information about the p4-projects mailing list