Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2007 14:25:51 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 132099 for review
Message-ID:  <200712301425.lBUEPpR4087924@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132099

Change 132099 by hselasky@hselasky_laptop001 on 2007/12/30 14:25:30

	
	Style change.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_compat_linux.c#22 edit

Differences ...

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

@@ -406,12 +406,12 @@
 	struct usb_host_endpoint *uhe;
 
 	if (urb == NULL) {
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	mtx_assert(&usb_global_lock, MA_OWNED);
 
 	if (urb->pipe == NULL) {
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	uhe = urb->pipe;
 
@@ -433,7 +433,7 @@
 	} else {
 		/* no pipes have been setup yet! */
 		urb->status = -EINVAL;
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	return (0);
 }
@@ -451,12 +451,12 @@
 	uint16_t x;
 
 	if (urb == NULL) {
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	mtx_assert(&usb_global_lock, MA_OWNED);
 
 	if (urb->pipe == NULL) {
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	uhe = urb->pipe;
 
@@ -511,7 +511,7 @@
 	uint8_t addr;
 
 	if (uhe == NULL)
-		return -EINVAL;
+		return (-EINVAL);
 
 	type = uhe->desc.bmAttributes & UE_XFERTYPE;
 	addr = uhe->desc.bEndpointAddress;
@@ -524,7 +524,7 @@
 
 	pipe = usbd_get_pipe(dev->bsd_udev, uhe->bsd_iface_index, cfg);
 	if (pipe == NULL)
-		return -EINVAL;
+		return (-EINVAL);
 
 	usbd_clear_data_toggle(dev->bsd_udev, pipe);
 
@@ -606,7 +606,7 @@
 	uint8_t addr;
 
 	if (uhe == NULL) {
-		return -EINVAL;
+		return (-EINVAL);
 	}
 	type = (uhe->desc.bmAttributes & UE_XFERTYPE);
 	addr = (uhe->desc.bEndpointAddress & UE_ADDR);
@@ -621,16 +621,16 @@
 		uhe_read = NULL;
 	} else {
 		if (type == UE_ISOCHRONOUS) {
-			return -EINVAL;
+			return (-EINVAL);
 		}
 		uhe_write = usb_find_host_endpoint(dev, type, addr | UE_DIR_OUT);
 		if (uhe_write == NULL) {
-			return -EINVAL;
+			return (-EINVAL);
 		}
 		if (requesttype & UT_READ) {
 			uhe_read = usb_find_host_endpoint(dev, type, addr | UE_DIR_IN);
 			if (uhe_read == NULL) {
-				return -EINVAL;
+				return (-EINVAL);
 			}
 		} else {
 			uhe_read = NULL;
@@ -645,7 +645,7 @@
 	 */
 	urb = usb_alloc_urb(0xFFFF, size);
 	if (urb == NULL)
-		return -ENOMEM;
+		return (-ENOMEM);
 
 	urb->dev = dev;
 
@@ -722,9 +722,9 @@
 	int32_t err;
 
 	if (p_ui == NULL)
-		return -EINVAL;
+		return (-EINVAL);
 	if (alt_index >= p_ui->num_altsetting)
-		return -EINVAL;
+		return (-EINVAL);
 	usb_linux_cleanup_interface(dev, p_ui);
 	err = -usbd_set_config_index(dev->bsd_udev, p_ui->bsd_iface_index, alt_index);
 	if (err == 0) {
@@ -793,7 +793,7 @@
 
 		if (usbd_transfer_setup(dev->bsd_udev, &(uhe->bsd_iface_index),
 		    uhe->bsd_xfer, cfg, 2, uhe, &usb_global_lock)) {
-			return -EINVAL;
+			return (-EINVAL);
 		}
 	} else {
 		if (bufsize > (1 << 22)) {
@@ -813,7 +813,7 @@
 
 		if (usbd_transfer_setup(dev->bsd_udev, &(uhe->bsd_iface_index),
 		    uhe->bsd_xfer, cfg, 1, uhe, &usb_global_lock)) {
-			return -EINVAL;
+			return (-EINVAL);
 		}
 	}
 	return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712301425.lBUEPpR4087924>