]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/pcmcia/cistpl.c
omapfb: Remove casting and change coding style
[linux-2.6-omap-h63xx.git] / drivers / pcmcia / cistpl.c
index 9fcff0c336193e3fa4d5ccfc465e5766514cd4cc..65129b54eb09c309ef87e9ebf94a3c60869efdd9 100644 (file)
@@ -1490,7 +1490,7 @@ int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, unsigned
            ((tuple->TupleCode > 0x90) && (tuple->TupleCode < 0xff)))
            reserved++;
     }
-    if ((count) || (reserved > 5) ||
+    if ((count == MAX_TUPLES) || (reserved > 5) ||
        ((!dev_ok || !ident_ok) && (count > 10)))
        count = 0;