From: H Hartley Sweeten Date: Tue, 30 Jul 2013 00:45:47 +0000 (-0700) Subject: staging: comedi: usbdux: return void from usbdux_pwm_pattern() X-Git-Tag: v3.12-rc1~183^2~401 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89878614e24329209bf0d4efbb09fb5e431e7eb0;p=pandora-kernel.git staging: comedi: usbdux: return void from usbdux_pwm_pattern() This function never fails and currently returns '1' so that the usbdux_pwm_write() function returns to proper value (insn->n). It's also called by usbdux_pwm_config() which also returns the '1' value. The proper return code for this function should be '0' to indicate success. Change the return type of the function to void and just have the callers return the proper values. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed