From: H Hartley Sweeten Date: Thu, 23 May 2013 19:45:51 +0000 (-0700) Subject: staging: comedi: usbduxsigma: tidy up usbduxsub_ao_IsocIrq() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~472 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=641b78f3674fcf2f77aaf295ab2a96c3d9d7d3cb;p=pandora-kernel.git staging: comedi: usbduxsigma: tidy up usbduxsub_ao_IsocIrq() Rename the local variables to follow the "norm" for comedi drivers. The comedi_subdevice for this function is the dev->write_subdev that was initialized during the (*auto_attach), use that instead of directly accessing the comedi_device subdevices array. Use dev->class_dev for any dev_{level} messages. Remove the extra check of 'ao_cmd_running' before submitting the urb. This flag was previously checked and if the command is aborted due to an usbdux_ao_stop() before reaching this point the function will exit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed