aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 16:30:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 07:38:59 -0200
commit50c8012c429f4a2fe867178e3f2e6a616a20e620 (patch)
tree1b074849ed2cd2cb16e6f98c66a719582ca93789 /drivers/media/usb
parent534d032601b1e274da0f0297c1312e79e56344a9 (diff)
downloadkernel_goldelico_gta04-50c8012c429f4a2fe867178e3f2e6a616a20e620.zip
kernel_goldelico_gta04-50c8012c429f4a2fe867178e3f2e6a616a20e620.tar.gz
kernel_goldelico_gta04-50c8012c429f4a2fe867178e3f2e6a616a20e620.tar.bz2
[media] zr364xx: urb actual_length is unsigned
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>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/zr364xx/zr364xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/zr364xx/zr364xx.c b/drivers/media/usb/zr364xx/zr364xx.c
index 9afab35..39edd44 100644
--- a/drivers/media/usb/zr364xx/zr364xx.c
+++ b/drivers/media/usb/zr364xx/zr364xx.c
@@ -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;
}