From: Chase Southwood Date: Sat, 21 Jun 2014 22:24:39 +0000 (-0500) Subject: staging: comedi: addi_apci_1564: remove use of devpriv->b_OutputMemoryStatus X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e8ad74f9c7eace7b8ee075d42c2b3d4709b41225;p=linux-beck.git staging: comedi: addi_apci_1564: remove use of devpriv->b_OutputMemoryStatus This member of the private data struct is only set at one location in the entire driver, and then never even used for anything. Let's just remove its use. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c index 7fa4346f6184..4e6d0649489c 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c @@ -149,11 +149,6 @@ static int apci1564_do_config(struct comedi_device *dev, return -EINVAL; } - if (data[0]) - devpriv->b_OutputMemoryStatus = 1; - else - devpriv->b_OutputMemoryStatus = 0; - if (data[1] == 1) ul_Command = ul_Command | 0x1; else