From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:48 +0000 (-0700) Subject: staging: comedi: pcl818: exit interrupt quick when there is nothing to do X-Git-Tag: v3.15-rc1~139^2~655 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10933a9cfa258048813fd8a287be844d30711731;p=pandora-kernel.git staging: comedi: pcl818: exit interrupt quick when there is nothing to do If an async ai command is not running or the ai_mode is 0 the interrupt routine doesn't do anything other than spew some noise and clear the interrupt request in the hardware. Because this driver is manually attached, the "premature interrupt" check in the interrupt handler should never happen. The interrupt is only hooked up during the attach and it's released during the detach. Combine these checks so that the interrupt function exits quick if it has nothing to handle. Remove the noise. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed