staging: comedi: usbdux: tidy up usbdux_pwm_write()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 30 Jul 2013 00:44:50 +0000 (17:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:44:54 +0000 (17:44 -0700)
commit5c63f094a75820b85f7aecf6ee84439d610017c0
treea506198878fa3fda0aa2bee4a033887bc7ccc564
parent3b2dc08b72a80009887a0e0b80d63fdaa1f2a8a9
staging: comedi: usbdux: tidy up usbdux_pwm_write()

Remove the sanity check of the private data. This function can only be
called if the private data was successfully allocated in the attach.

Tidy up the function a bit.

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