Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50c8012c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 534d0326
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
	}