PERFORCE change 133341 for review

Hans Petter Selasky hselasky at FreeBSD.org
Tue Jan 15 11:45:22 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133341

Change 133341 by hselasky at hselasky_laptop001 on 2008/01/15 19:44:37

	
	Style change by "usb_style.sh".

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#105 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#105 (text+ko) ====

@@ -2110,32 +2110,32 @@
 repeat:
 	xfer[0] = LIST_FIRST(&(info->done_head));
 	if (xfer[0]) {
-	  do {
-		LIST_REMOVE(xfer[0], done_list);
-		xfer[0]->done_list.le_prev = NULL;
-		xfer[1] = LIST_FIRST(&(info->done_head));
-		if (xfer[1] == NULL) {
-			dropcount = 1;
-			break;
-		}
-		LIST_REMOVE(xfer[1], done_list);
-		xfer[1]->done_list.le_prev = NULL;
-		xfer[2] = LIST_FIRST(&(info->done_head));
-		if (xfer[2] == NULL) {
-			dropcount = 2;
-			break;
-		}
-		LIST_REMOVE(xfer[2], done_list);
-		xfer[2]->done_list.le_prev = NULL;
-		xfer[3] = LIST_FIRST(&(info->done_head));
-		if (xfer[3] == NULL) {
-			dropcount = 3;
-			break;
-		}
-		LIST_REMOVE(xfer[3], done_list);
-		xfer[3]->done_list.le_prev = NULL;
-		dropcount = 4;
-	  } while (0);
+		do {
+			LIST_REMOVE(xfer[0], done_list);
+			xfer[0]->done_list.le_prev = NULL;
+			xfer[1] = LIST_FIRST(&(info->done_head));
+			if (xfer[1] == NULL) {
+				dropcount = 1;
+				break;
+			}
+			LIST_REMOVE(xfer[1], done_list);
+			xfer[1]->done_list.le_prev = NULL;
+			xfer[2] = LIST_FIRST(&(info->done_head));
+			if (xfer[2] == NULL) {
+				dropcount = 2;
+				break;
+			}
+			LIST_REMOVE(xfer[2], done_list);
+			xfer[2]->done_list.le_prev = NULL;
+			xfer[3] = LIST_FIRST(&(info->done_head));
+			if (xfer[3] == NULL) {
+				dropcount = 3;
+				break;
+			}
+			LIST_REMOVE(xfer[3], done_list);
+			xfer[3]->done_list.le_prev = NULL;
+			dropcount = 4;
+		} while (0);
 
 		mtx_unlock(info->usb_mtx);
 
@@ -2148,13 +2148,13 @@
 		/* call callback(s) */
 		switch (dropcount) {
 		case 4:
-		usbd_callback_wrapper(xfer[3], info, USBD_CONTEXT_CALLBACK);
+			usbd_callback_wrapper(xfer[3], info, USBD_CONTEXT_CALLBACK);
 		case 3:
-		usbd_callback_wrapper(xfer[2], info, USBD_CONTEXT_CALLBACK);
+			usbd_callback_wrapper(xfer[2], info, USBD_CONTEXT_CALLBACK);
 		case 2:
-		usbd_callback_wrapper(xfer[1], info, USBD_CONTEXT_CALLBACK);
+			usbd_callback_wrapper(xfer[1], info, USBD_CONTEXT_CALLBACK);
 		case 1:
-		usbd_callback_wrapper(xfer[0], info, USBD_CONTEXT_CALLBACK);
+			usbd_callback_wrapper(xfer[0], info, USBD_CONTEXT_CALLBACK);
 		default:
 			break;
 		}


More information about the p4-projects mailing list