Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ozwpan: Add missing blanklines after declarations

Signed-off-by: James A Shackleford <shack@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

James A Shackleford and committed by
Greg Kroah-Hartman
ba910808 96747a8f

+15
+15
drivers/staging/ozwpan/ozhcd.c
··· 294 294 { 295 295 if (urbl) { 296 296 unsigned long irq_state; 297 + 297 298 spin_lock_irqsave(&g_link_lock, irq_state); 298 299 if (g_link_pool_size < OZ_MAX_LINK_POOL_SIZE) { 299 300 urbl->link.next = g_link_pool; ··· 425 424 if (port) { 426 425 struct list_head list; 427 426 struct oz_hcd *ozhcd = port->ozhcd; 427 + 428 428 INIT_LIST_HEAD(&list); 429 429 if (ep->flags & OZ_F_EP_HAVE_STREAM) 430 430 oz_usb_stream_delete(port->hpd, ep->ep_num); ··· 570 568 ep = port->out_ep[ep_addr]; 571 569 if (ep) { 572 570 struct list_head *e; 571 + 573 572 list_for_each(e, &ep->urb_list) { 574 573 urbl = container_of(e, struct oz_urb_link, link); 575 574 if (urbl->urb == urb) { ··· 602 599 ep = port->out_ep[ep_ix]; 603 600 if (ep) { 604 601 struct list_head *e; 602 + 605 603 list_for_each(e, &ep->urb_list) { 606 604 urbl = container_of(e, struct oz_urb_link, link); 607 605 if (urbl->req_id == req_id) { ··· 819 815 if (status == 0) { 820 816 int copy_len; 821 817 int required_size = urb->transfer_buffer_length; 818 + 822 819 if (required_size > total_size) 823 820 required_size = total_size; 824 821 copy_len = required_size-offset; ··· 831 826 struct usb_ctrlrequest *setup = 832 827 (struct usb_ctrlrequest *)urb->setup_packet; 833 828 unsigned wvalue = le16_to_cpu(setup->wValue); 829 + 834 830 if (oz_enqueue_ep_urb(port, 0, 0, urb, req_id)) 835 831 err = -ENOMEM; 836 832 else if (oz_usb_get_desc_req(port->hpd, req_id, ··· 925 919 if ((rcode == 0) && (port->config_num > 0)) { 926 920 struct usb_host_config *config; 927 921 struct usb_host_interface *intf; 922 + 928 923 oz_dbg(ON, "Set interface %d alt %d\n", if_num, alt); 929 924 oz_clean_endpoints_for_interface(hcd, port, if_num); 930 925 config = &urb->dev->config[port->config_num-1]; ··· 981 974 982 975 } else { 983 976 int copy_len; 977 + 984 978 oz_dbg(ON, "VENDOR-CLASS - cnf\n"); 985 979 if (data_len) { 986 980 if (data_len <= urb->transfer_buffer_length) ··· 1055 1047 struct oz_urb_link, link); 1056 1048 struct urb *urb; 1057 1049 int copy_len; 1050 + 1058 1051 list_del_init(&urbl->link); 1059 1052 spin_unlock_bh(&ozhcd->hcd_lock); 1060 1053 urb = urbl->urb; ··· 1149 1140 spin_lock_bh(&ozhcd->hcd_lock); 1150 1141 list_for_each(e, &port->isoc_in_ep) { 1151 1142 struct oz_endpoint *ep = ep_from_link(e); 1143 + 1152 1144 if (ep->flags & OZ_F_EP_BUFFERING) { 1153 1145 if (ep->buffered_units >= OZ_IN_BUFFERING_UNITS) { 1154 1146 ep->flags &= ~OZ_F_EP_BUFFERING; ··· 1170 1160 int len = 0; 1171 1161 int copy_len; 1172 1162 int i; 1163 + 1173 1164 if (ep->credit < urb->number_of_packets) 1174 1165 break; 1175 1166 if (ep->buffered_units < urb->number_of_packets) ··· 1226 1215 if (ep) { 1227 1216 struct list_head *e; 1228 1217 struct list_head *n; 1218 + 1229 1219 spin_lock_bh(&ozhcd->hcd_lock); 1230 1220 list_for_each_safe(e, n, &ep->urb_list) { 1231 1221 urbl = container_of(e, struct oz_urb_link, link); ··· 1569 1557 } 1570 1558 if (!rc && !complete) { 1571 1559 int data_len = 0; 1560 + 1572 1561 if ((setup->bRequestType & USB_DIR_IN) == 0) 1573 1562 data_len = wlength; 1574 1563 urb->actual_length = data_len; ··· 1774 1761 { 1775 1762 if (ozhcd) { 1776 1763 struct oz_urb_link *urbl; 1764 + 1777 1765 while (!list_empty(&ozhcd->orphanage)) { 1778 1766 urbl = list_first_entry(&ozhcd->orphanage, 1779 1767 struct oz_urb_link, link); ··· 2272 2258 spin_lock_init(&ozhcd->hcd_lock); 2273 2259 for (i = 0; i < OZ_NB_PORTS; i++) { 2274 2260 struct oz_port *port = &ozhcd->ports[i]; 2261 + 2275 2262 port->ozhcd = ozhcd; 2276 2263 port->flags = 0; 2277 2264 port->status = 0;