bitwise and should be logical and
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 17 Jun 2002 15:47:10 +0000 (15:47 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 17 Jun 2002 15:47:10 +0000 (15:47 +0000)
comedi/drivers/amcc_s5933.c

index 377679ccd6db2dab09374f28ebc5cf0745fef94c..234d7d64925869fa177f6221c6a699c08084f8f5 100644 (file)
@@ -182,7 +182,7 @@ struct pcilst_struct *select_and_alloc_pci_card(unsigned short vendor_id, unsign
 {
        struct pcilst_struct *card;
        
-       if ((pci_bus<1)&(pci_slot<1)) { // use autodetection
+       if ((pci_bus<1)&&(pci_slot<1)) { // use autodetection
                if ((card=find_free_pci_card_by_device(vendor_id,device_id))==NULL) {
                        rt_printk(" - Unused card not found in system!\n");
                        return NULL;