From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:41 +0000 (-0700) Subject: staging: comedi: pcl818: factor out the common "dropout" detect code X-Git-Tag: v3.15-rc1~139^2~662 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8f461c2b9df3c69f0ea995ce1fb506be50be409;p=pandora-kernel.git staging: comedi: pcl818: factor out the common "dropout" detect code The DMA, FIFO, and EOC interrupt handlers all have common code that checks for channel dropout when running an async command. Factor this common code into a helper function. Only return the sample if the channel is valid. The EOC handler was previously returning the value then checking for channel dropout. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed