From 58f972bf36479b63863a464a8c66347a80475ba7 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 17 Mar 2002 00:57:42 +0000 Subject: [PATCH] clean up compiler warnings --- comedi/drivers/ni_mio_common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index 82c99e9c..60b1bbbb 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -199,9 +199,6 @@ static int ni_ai_reset(comedi_device *dev,comedi_subdevice *s); static void ni_handle_fifo_half_full(comedi_device *dev); #endif static void ni_handle_fifo_dregs(comedi_device *dev); -#ifdef PCIDMA -static void ni_handle_block_dma(comedi_device *dev); -#endif static int ni_ai_inttrig(comedi_device *dev,comedi_subdevice *s, unsigned int trignum); static void ni_load_channelgain_list(comedi_device *dev,unsigned int n_chan, @@ -642,6 +639,7 @@ static void ni_mio_print_status_b(int status) } #endif +#ifndef PCIDMA static void ni_ai_fifo_read(comedi_device *dev,comedi_subdevice *s, sampl_t *data,int n) { @@ -701,6 +699,7 @@ static void ni_handle_fifo_half_full(comedi_device *dev) async->events |= COMEDI_CB_BLOCK; } +#endif /* Empties the AI fifo @@ -760,6 +759,7 @@ static void ni_munge(comedi_device *dev,comedi_subdevice *s,sampl_t *start, async->cur_chan=j; } +#if 0 static void ni_handle_block_dma(comedi_device *dev) { comedi_subdevice *s = dev->subdevices + 0; @@ -776,6 +776,7 @@ static void ni_handle_block_dma(comedi_device *dev) s->async->events |= COMEDI_CB_EOA; MDPRINTK("exit ni_handle_block_dma\n"); } +#endif static void ni_ai_setup_MITE_dma(comedi_device *dev,comedi_cmd *cmd) { -- 2.26.2