Commit f463b8c0 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adl_pci9118: remove 'dmabuf_panic_size' from private data

This member of the private data is only used in some #if 0'ed code. Remove
it along with the unused code.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 006e81e2
...@@ -251,7 +251,6 @@ struct pci9118_private { ...@@ -251,7 +251,6 @@ struct pci9118_private {
* for transfer * for transfer
*/ */
unsigned int dmabuf_used_size[2]; /* which size was truly used */ unsigned int dmabuf_used_size[2]; /* which size was truly used */
unsigned int dmabuf_panic_size[2];
int dmabuf_pages[2]; /* number of pages in buffer */ int dmabuf_pages[2]; /* number of pages in buffer */
unsigned char exttrg_users; /* unsigned char exttrg_users; /*
* bit field of external trigger * bit field of external trigger
...@@ -1122,22 +1121,6 @@ static int Compute_and_setup_dma(struct comedi_device *dev, ...@@ -1122,22 +1121,6 @@ static int Compute_and_setup_dma(struct comedi_device *dev,
devpriv->dmabuf_use_size[0] = dmalen0; devpriv->dmabuf_use_size[0] = dmalen0;
devpriv->dmabuf_use_size[1] = dmalen1; devpriv->dmabuf_use_size[1] = dmalen1;
#if 0
if (cmd->scan_end_arg < PCI9118_HALF_FIFO_SZ) {
devpriv->dmabuf_panic_size[0] =
(PCI9118_HALF_FIFO_SZ / cmd->scan_end_arg +
1) * cmd->scan_end_arg * sizeof(short);
devpriv->dmabuf_panic_size[1] =
(PCI9118_HALF_FIFO_SZ / cmd->scan_end_arg +
1) * cmd->scan_end_arg * sizeof(short);
} else {
devpriv->dmabuf_panic_size[0] =
(cmd->scan_end_arg << 1) % devpriv->dmabuf_size[0];
devpriv->dmabuf_panic_size[1] =
(cmd->scan_end_arg << 1) % devpriv->dmabuf_size[1];
}
#endif
pci9118_amcc_dma_ena(dev, false); pci9118_amcc_dma_ena(dev, false);
pci9118_amcc_setup_dma(dev, 0); pci9118_amcc_setup_dma(dev, 0);
/* init DMA transfer */ /* init DMA transfer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment