From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:03:15 +0000 (-0700) Subject: staging: comedi: usbdux: tidy up usbdux_ai_inttrig() X-Git-Tag: v3.12-rc1~183^2~521 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5cb2f9498e0a5b4c7f882a21dbba8f8ba351819;p=pandora-kernel.git staging: comedi: usbdux: tidy up usbdux_ai_inttrig() 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. Return -EBUSY if an ai command is already running. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed