提交 e8ad74f9 编写于 作者: C Chase Southwood 提交者: Greg Kroah-Hartman

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: NChase Southwood <chase.southwood@gmail.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeeten <hsweeten@visionengravers.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d7b6c574
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册