commit | 1c379e94b38d5e575643212e6890de6a3380e6fe | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jul 29 17:47:06 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 31 17:44:59 2013 -0700 |
tree | 0eac485085c1041508d12263fb2b736abe4a4fbc | |
parent | 315a276da9952f481edc2396deab455173dbaea8 [diff] |
staging: comedi: usbduxsigma: init 'pwm_buf_sz' in usbduxsigma_auto_attach() Initialize this variable with then_ai_urbs and n_ao_urbs in the attach. Then usbduxsigma_alloc_usb_buffers() can just check the variable to determine if the urb needs to be allocated. 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>