fix warning from check_driver
authorDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:18:05 +0000 (04:18 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:18:05 +0000 (04:18 +0000)
comedi/drivers/ke_counter.c

index 08825c366b2f6de8810539a3c9c3e41ab8d6e60f..e84cade4d14897829e61b12aff1fd8e9d5d45b62 100644 (file)
@@ -189,9 +189,7 @@ found:
 
   /* read register base address [PCI_BASE_ADDRESS #0] */
   io_base = pci_resource_start(pci_device, 0);
-  if (request_region(io_base & PCI_BASE_ADDRESS_IO_MASK, 0x08, CNT_DRIVER_NAME) == NULL) {
-    return -EIO;
-  }
+  request_region(io_base & PCI_BASE_ADDRESS_IO_MASK, 0x08, CNT_DRIVER_NAME);
   dev->iobase = io_base & PCI_BASE_ADDRESS_IO_MASK;
 
   /* allocate the subdevice structures */