From 6b16fd2af310fde52fd91c369129851d3f6e38fd Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 9 Sep 2002 19:00:09 +0000 Subject: [PATCH] Fix bad bus number comparison. --- comedi/drivers/ni_pcidio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index 9ed9c9d2..e5ed424e 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -1026,7 +1026,7 @@ static int nidio_find_device(comedi_device *dev,int bus,int slot) for(mite=mite_devices;mite;mite=mite->next){ if(mite->used)continue; if(bus || slot){ - if(bus!=(mite->pcidev->bus->number<<8) || + if(bus!=mite->pcidev->bus->number || slot!=PCI_SLOT(mite->pcidev->devfn)) continue; } -- 2.26.2