From: H Hartley Sweeten Date: Tue, 30 Jul 2013 00:47:06 +0000 (-0700) Subject: staging: comedi: usbduxsigma: init 'pwm_buf_sz' in usbduxsigma_auto_attach() X-Git-Tag: v3.12-rc1~183^2~397 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c379e94b38d5e575643212e6890de6a3380e6fe;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed