From acd913c5dba4346098ae8c5c537a09854e872d83 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 21 Nov 2002 04:18:05 +0000 Subject: [PATCH] fix warning from check_driver --- comedi/drivers/ke_counter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/comedi/drivers/ke_counter.c b/comedi/drivers/ke_counter.c index 08825c36..e84cade4 100644 --- a/comedi/drivers/ke_counter.c +++ b/comedi/drivers/ke_counter.c @@ -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 */ -- 2.26.2