Skip to content

Commit

Permalink
[media] zr364xx: urb actual_length is unsigned
Browse files Browse the repository at this point in the history
drivers/media/usb/zr364xx/zr364xx.c:1010:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Cc: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 534d032 commit 50c8012
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/usb/zr364xx/zr364xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,7 @@ static void read_pipe_completion(struct urb *purb)
return;
}

if (purb->actual_length < 0 ||
purb->actual_length > pipe_info->transfer_size) {
if (purb->actual_length > pipe_info->transfer_size) {
dev_err(&cam->udev->dev, "wrong number of bytes\n");
return;
}
Expand Down

0 comments on commit 50c8012

Please sign in to comment.