diff options
author | Rupesh Gujare <rupesh.gujare@atmel.com> | 2013-08-23 17:33:31 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-26 13:27:43 (GMT) |
commit | 4882ad9561d2a719ac9fb269bf0567141fd9892e (patch) | |
tree | b1c199ef6c98c2d2ca93d427731b7c09227bdb67 /drivers | |
parent | 00d2a46ca90619d93d913935844c7f456284ab16 (diff) | |
download | linux-4882ad9561d2a719ac9fb269bf0567141fd9892e.tar.xz |
staging: ozwpan: change variable type.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ozwpan/ozhcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 16fd60b..3548860 100644 --- a/drivers/staging/ozwpan/ozhcd.c +++ b/drivers/staging/ozwpan/ozhcd.c @@ -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 |