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

Commit 199ab8fe authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] s2255drv: index is always positive



drivers/media/usb/s2255/s2255drv.c:1654:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d3e4ea01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1651,7 +1651,7 @@ static int vidioc_enum_frameintervals(struct file *file, void *priv,
	int is_ntsc = 0;
#define NUM_FRAME_ENUMS 4
	int frm_dec[NUM_FRAME_ENUMS] = {1, 2, 3, 5};
	if (fe->index < 0 || fe->index >= NUM_FRAME_ENUMS)
	if (fe->index >= NUM_FRAME_ENUMS)
		return -EINVAL;
	switch (fe->width) {
	case 640: