diff options
author | Adrian Nicoara <anicoara@uwaterloo.ca> | 2014-09-08 14:39:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 13:26:33 -0700 |
commit | ce6880e17508b31e04628a71d4691ef4a00a8b3f (patch) | |
tree | 6d0aeaa2d6c228f1124154f4d3a9fdb47c473874 /drivers/staging/ozwpan/ozusbsvc1.c | |
parent | b51144323281d23aac51ac38c0748e12f0c1e72c (diff) | |
download | op-kernel-dev-ce6880e17508b31e04628a71d4691ef4a00a8b3f.zip op-kernel-dev-ce6880e17508b31e04628a71d4691ef4a00a8b3f.tar.gz |
staging: ozwpan: fix missing blank line after declaration
Cleanup checkpatch.pl warnings.
Signed-off-by: Adrian Nicoara <anicoara@uwaterloo.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozusbsvc1.c')
-rw-r--r-- | drivers/staging/ozwpan/ozusbsvc1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/ozwpan/ozusbsvc1.c b/drivers/staging/ozwpan/ozusbsvc1.c index 12bb236..be7ee01 100644 --- a/drivers/staging/ozwpan/ozusbsvc1.c +++ b/drivers/staging/ozwpan/ozusbsvc1.c @@ -213,6 +213,7 @@ int oz_usb_control_req(void *hpd, u8 req_id, struct usb_ctrlrequest *setup, case USB_REQ_SET_INTERFACE: { u8 if_num = (u8)windex; u8 alt = (u8)wvalue; + rc = oz_usb_set_interface_req(hpd, req_id, if_num, alt); } @@ -254,6 +255,7 @@ int oz_usb_send_isoc(void *hpd, u8 ep_num, struct urb *urb) if (pd->mode & OZ_F_ISOC_NO_ELTS) { for (i = 0; i < urb->number_of_packets; i++) { u8 *data; + desc = &urb->iso_frame_desc[i]; data = ((u8 *)urb->transfer_buffer)+desc->offset; oz_send_isoc_unit(pd, ep_num, data, desc->length); @@ -271,6 +273,7 @@ int oz_usb_send_isoc(void *hpd, u8 ep_num, struct urb *urb) int unit_count; int unit_size; int rem; + if (ei == NULL) return -1; rem = MAX_ISOC_FIXED_DATA; @@ -340,6 +343,7 @@ static void oz_usb_handle_ep_data(struct oz_usb_ctx *usb_ctx, u8 *data = body->data; int count; int i; + if (!unit_size) break; count = data_len/unit_size; |