From: Frank Mori Hess Date: Mon, 17 Jun 2002 15:47:10 +0000 (+0000) Subject: bitwise and should be logical and X-Git-Tag: r0_7_66~195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9723ae9182eca3236bc2d7a24c84fda6787c3cb2;p=comedi.git bitwise and should be logical and --- diff --git a/comedi/drivers/amcc_s5933.c b/comedi/drivers/amcc_s5933.c index 377679cc..234d7d64 100644 --- a/comedi/drivers/amcc_s5933.c +++ b/comedi/drivers/amcc_s5933.c @@ -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;