]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbdux: tidy up usbduxsub_submit_inurbs()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 24 Jul 2013 21:12:35 +0000 (14:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 20:15:30 +0000 (13:15 -0700)
commit5e2ace80c9d7c5d488da1289f6f58f2f36caed4c
treeb09cc7384313c76e0e922dabb58c05e2b3d4683d
parent977ac01eaad01878a7c3414d0e931a2c757a1958
staging: comedi: usbdux: tidy up usbduxsub_submit_inurbs()

Pass the comedi_device pointer (the urb context) to this function
instead of the private data pointer.

Use a local variable for the urb pointers that are setup and submitted.

Remove the sanity check of the private data. This function can only
get called if the allocation was successful during the attach.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c