From 4f1db4b629c5206b918aa5cd708870cdc87d815c Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 23 Apr 2002 15:08:35 +0000 Subject: [PATCH] minor changes to get rid of 'statement with no effect' compiler warnings on 2.2 kernel --- comedi/drivers/mite.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index a79d9894..9b2beafd 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -115,12 +115,11 @@ int mite_setup(struct mite_struct *mite) start = mite->mite_phys_addr & PAGE_MASK; length = PCI_MITE_SIZE + offset; // check and request io memory region - if(check_mem_region(start, length)){ + if(request_mem_region(start, length, "mite")){ printk("io memory region already in use\n"); return -EIO; } - request_mem_region(start, length, "mite"); mite->mite_io_addr = ioremap(start, length) + offset; printk("MITE:0x%08lx mapped to %p ",mite->mite_phys_addr,mite->mite_io_addr); @@ -130,12 +129,11 @@ int mite_setup(struct mite_struct *mite) start = mite->daq_phys_addr & PAGE_MASK; length = PCI_DAQ_SIZE + offset; // check and request io memory region - if(check_mem_region(start, length)){ + if(request_mem_region(start, length, "mite")){ printk("io memory region already in use\n"); return -EIO; } - request_mem_region(start, length, "mite (daq)"); mite->daq_io_addr = ioremap(start, length) + offset; printk("DAQ:0x%08lx mapped to %p\n",mite->daq_phys_addr,mite->daq_io_addr); -- 2.26.2