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

Commit d3e4ea01 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] em28xx-cards: fix a warning



drivers/media/usb/em28xx/em28xx-cards.c:3309:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 03ad9fe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3306,7 +3306,7 @@ static int em28xx_usb_probe(struct usb_interface *interface,

	dev->num_alt = interface->num_altsetting;

	if ((card[nr] >= 0) && (card[nr] < em28xx_bcount))
	if ((unsigned)card[nr] < em28xx_bcount)
		dev->model = card[nr];

	/* save our data pointer in this interface device */