From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:06:30 +0000 (-0700) Subject: staging: comedi: usbdux: fix usbdux_counter_read() X-Git-Tag: v3.12-rc1~183^2~511 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48967d4f5d91acbe0e70fa821c5951059566ac84;p=pandora-kernel.git staging: comedi: usbdux: fix usbdux_counter_read() Comedi (*insn_read) operations are supposed to read and return insn->n values. Fix this function to work like the core expects. Rename the local variable used for the private data pointer to the comedi "norm". Remove the unnecessary sanity check of the private data pointer. This function can only be called is the private data was allocated during the attach. Tidy up the exit path using goto to ensure that the semaphore is released. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed