]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] em28xx-cards: fix a warning
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:29:20 +0000 (16:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:56 +0000 (07:38 -0200)
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>
drivers/media/usb/em28xx/em28xx-cards.c

index bcd06e5ceaf4c2de5536ed1f09f682c73aad0f42..619bffbab3bc050f2cb2f1f1929bd5da1bdd91a8 100644 (file)
@@ -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 */