提交 c2ccd69a 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: usbduxsigma: use comedi_cmd pointer

Use the local variable to access the comedi_cmd as a pointer instead
of getting to it from the comedi_subdevice pointer.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f2353b20
...@@ -312,7 +312,7 @@ static void usbduxsigma_ai_urb_complete(struct urb *urb) ...@@ -312,7 +312,7 @@ static void usbduxsigma_ai_urb_complete(struct urb *urb)
} }
/* get the data from the USB bus and hand it over to comedi */ /* get the data from the USB bus and hand it over to comedi */
for (i = 0; i < s->async->cmd.chanlist_len; i++) { for (i = 0; i < cmd->chanlist_len; i++) {
/* transfer data, note first byte is the DIO state */ /* transfer data, note first byte is the DIO state */
val = be32_to_cpu(devpriv->in_buf[i+1]); val = be32_to_cpu(devpriv->in_buf[i+1]);
val &= 0x00ffffff; /* strip status byte */ val &= 0x00ffffff; /* strip status byte */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册