staging: ozwpan: change variable type.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Fri, 23 Aug 2013 17:33:31 +0000 (18:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:27:43 +0000 (06:27 -0700)
We have icreased interrupt end point buffer size to 512 bytes,
Change variable data type to accomodate it.

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c

index 16fd60b5f5c74202f8c1055b3e62ad1f237ebbc4..35488608df7a31ef08fd5ed75d84a2a39d843528 100644 (file)
@@ -441,9 +441,9 @@ static void oz_complete_buffered_urb(struct oz_port *port,
                        struct oz_endpoint *ep,
                        struct urb *urb)
 {
-       u8 data_len, available_space, copy_len;
+       int data_len, available_space, copy_len;
 
-       memcpy(&data_len, &ep->buffer[ep->out_ix], sizeof(u8));
+       data_len = ep->buffer[ep->out_ix];
        if (data_len <= urb->transfer_buffer_length)
                available_space = data_len;
        else