]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] meye: fix a warning
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:21:42 +0000 (16:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:49 +0000 (07:38 -0200)
drivers/media/pci/meye/meye.c:1948:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/meye/meye.c

index e5a76da860816897ff7740b905f16015d71aadc0..ae7d32027bf726e0e73499880a61a07187fa6744 100644 (file)
@@ -1945,7 +1945,7 @@ static struct pci_driver meye_driver = {
 static int __init meye_init(void)
 {
        gbuffers = max(2, min((int)gbuffers, MEYE_MAX_BUFNBRS));
-       if (gbufsize < 0 || gbufsize > MEYE_MAX_BUFSIZE)
+       if (gbufsize > MEYE_MAX_BUFSIZE)
                gbufsize = MEYE_MAX_BUFSIZE;
        gbufsize = PAGE_ALIGN(gbufsize);
        printk(KERN_INFO "meye: using %d buffers with %dk (%dk total) "