]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] zr364xx: urb actual_length is unsigned
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:30:47 +0000 (16:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:59 +0000 (07:38 -0200)
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>
drivers/media/usb/zr364xx/zr364xx.c

index 9afab35878b417f0c0ef7a7b352b718655373d7b..39edd444293226406a4faed135930dcf09ff059c 100644 (file)
@@ -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;
        }