Signed-off-by: Jaroslav Kysela <perex@perex.cz>
static int usb_stream_read(struct user_usb_stream *uus, void *to)
{
struct usb_stream *s = uus->s;
- int p = s->inpacket_split, l = 0;
+ unsigned p = s->inpacket_split, l = 0;
void *i = (void *)s + s->inpacket[p].offset + s->inpacket_split_at;
- int il = s->inpacket[p].length - s->inpacket_split_at;
+ unsigned il = s->inpacket[p].length - s->inpacket_split_at;
do {
if (l + il > s->period_size)
unsigned read_size;
unsigned write_size;
- int period_size;
+ unsigned period_size;
unsigned state;