Skip to content

Commit

Permalink
[media] em28xx-cards: fix a warning
Browse files Browse the repository at this point in the history
drivers/media/usb/em28xx/em28xx-cards.c:3309:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 03ad9fe commit d3e4ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d3e4ea0

Please sign in to comment.