From: H Hartley Sweeten Date: Tue, 9 Sep 2014 20:05:37 +0000 (-0700) Subject: staging: comedi: adl_pci9118: remove 'dmabuf_used_size' from private data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=231649a475c3938199f752410dc3ef0944ff37c0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: adl_pci9118: remove 'dmabuf_used_size' from private data This member of the private data is set but never used. Just remove it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c index 98f2581a170c..7de8732bf9a5 100644 --- a/drivers/staging/comedi/drivers/adl_pci9118.c +++ b/drivers/staging/comedi/drivers/adl_pci9118.c @@ -251,7 +251,6 @@ struct pci9118_private { * which size we may now use * for transfer */ - unsigned int dmabuf_used_size[2]; /* which size was truly used */ int dmabuf_pages[2]; /* number of pages in buffer */ unsigned char exttrg_users; /* * bit field of external trigger @@ -701,8 +700,6 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev, */ next_dma_buf = 1 - devpriv->dma_actbuf; pci9118_amcc_setup_dma(dev, next_dma_buf); - devpriv->dmabuf_used_size[next_dma_buf] = - devpriv->dmabuf_use_size[next_dma_buf]; if (devpriv->ai_do == 4) interrupt_pci9118_ai_mode4_switch(dev); }