Date: Sun, 23 Dec 2007 09:07:16 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 131460 for review Message-ID: <200712230907.lBN97G29052648@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131460 Change 131460 by hselasky@hselasky_laptop001 on 2007/12/23 09:07:11 Style change by "usb_style.sh". Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_template.c#7 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_template.c#7 (text+ko) ==== @@ -713,7 +713,7 @@ return (USBD_INVAL); } } - return (0); /* success */ + return (0); /* success */ } if (desc->bDescriptorType != UDESC_CONFIG) { return (USBD_INVAL); @@ -763,7 +763,7 @@ usbd_hw_ep_get_needs(ues, UE_INTERRUPT, 1) || usbd_hw_ep_get_needs(ues, UE_CONTROL, 1) || usbd_hw_ep_get_needs(ues, UE_BULK, 1)) { - PRINTFN(-1, ("Could not update endpoint address\n")); + PRINTFN(-1, ("Could not update endpoint address\n")); return (USBD_INVAL); } return (0); /* success */ @@ -1011,11 +1011,11 @@ return (USBD_INVAL); } /* allocate zeroed memory */ - uts->buf = malloc(uts->size, M_USB, M_WAITOK | M_ZERO); - if (uts->buf == NULL) { - /* could not allocate memory */ - return (USBD_NOMEM); - } + uts->buf = malloc(uts->size, M_USB, M_WAITOK | M_ZERO); + if (uts->buf == NULL) { + /* could not allocate memory */ + return (USBD_NOMEM); + } /* second pass */ uts->size = 0; @@ -1031,7 +1031,6 @@ /* some error happened during second pass */ goto error; } - /* * Resolve all endpoint addresses ! */ @@ -1039,11 +1038,10 @@ uts->err = usbd_hw_ep_resolve(udev, buf); if (uts->err) { PRINTFN(-1, ("Could not resolve endpoints for " - "Device Descriptor, error = %s\n", - usbd_errstr(uts->err))); + "Device Descriptor, error = %s\n", + usbd_errstr(uts->err))); goto error; } - for (n = 0;; n++) { buf = usbd_temp_get_config_desc(udev, NULL, n); @@ -1053,8 +1051,8 @@ uts->err = usbd_hw_ep_resolve(udev, buf); if (uts->err) { PRINTFN(-1, ("Could not resolve endpoints for " - "Config Descriptor %u, error = %s\n", n, - usbd_errstr(uts->err))); + "Config Descriptor %u, error = %s\n", n, + usbd_errstr(uts->err))); goto error; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712230907.lBN97G29052648>